From d49229898c5c4e8a142129bdb5043bb01a479812 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sep 30 2019 06:12:02 +0000 Subject: Default --march-tune-native to false Despite the warnings, people still build using a different environment than the deployment one. This doesn't actually make the built library portable, just less likely to crash on a different CPU. Refs #146 --- diff --git a/ext/extconf.rb b/ext/extconf.rb index 08e067c..0244ba3 100644 --- a/ext/extconf.rb +++ b/ext/extconf.rb @@ -19,8 +19,7 @@ if enable_config('static-stdlib', false) $LDFLAGS << ' -static-libgcc -static-libstdc++' end -# Set to false when building binary gems -if enable_config('march-tune-native', true) +if enable_config('march-tune-native', false) $CFLAGS << ' -march=native -mtune=native' $CXXFLAGS << ' -march=native -mtune=native' end