ext/x25519_precomputed/extconf.rb in x25519-1.0.9 vs ext/x25519_precomputed/extconf.rb in x25519-1.0.10

- old
+ new

@@ -2,10 +2,14 @@ # rubocop:disable Style/GlobalVars require "mkmf" -$CFLAGS << " -Wall -O3 -pedantic -std=c99 -mbmi -mbmi2 -march=haswell" +if RUBY_PLATFORM =~ /arm64-darwin|aarch64-linux/ + File.write("Makefile", "install clean: ;") +else + $CFLAGS << " -Wall -O3 -pedantic -std=c99 -mbmi -mbmi2 -march=haswell" -create_makefile "x25519_precomputed" + create_makefile "x25519_precomputed" +end # rubocop:enable Style/GlobalVars