File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ Rake::ExtensionTask.new('libsass', gem_spec) do |ext|
23
23
# Link C++ stdlib statically when building binary gems.
24
24
ext . cross_config_options << '--enable-static-stdlib'
25
25
26
- ext . cross_config_options << '--disable-march-native'
26
+ ext . cross_config_options << '--disable-march-tune- native'
27
27
28
28
ext . cross_compiling do |spec |
29
29
spec . files . reject! { |path | File . fnmatch? ( 'ext/*' , path ) }
Original file line number Diff line number Diff line change 20
20
end
21
21
22
22
# Set to false when building binary gems
23
- if enable_config ( 'march-native' , true )
24
- $CFLAGS << ' -march=native'
25
- $CXXFLAGS << ' -march=native'
23
+ if enable_config ( 'march-tune- native' , true )
24
+ $CFLAGS << ' -march=native -mtune=native '
25
+ $CXXFLAGS << ' -march=native -mtune=native '
26
26
end
27
27
28
28
if enable_config ( 'lto' , true )
You can’t perform that action at this time.
0 commit comments