diff --git a/ext/extconf.rb b/ext/extconf.rb index 6d925dab..08781ca6 100644 --- a/ext/extconf.rb +++ b/ext/extconf.rb @@ -19,7 +19,9 @@ $LDFLAGS << ' -static-libgcc -static-libstdc++' end -if enable_config('march-tune-native', false) +# darwin arm doesn't support native +# see: https://github.com/sass/sassc-ruby/issues/222 +if enable_config('march-tune-native', false) && Gem::Platform.local.cpu != 'arm64' $CFLAGS << ' -march=native -mtune=native' $CXXFLAGS << ' -march=native -mtune=native' end