Skip to content

Commit 5f98917

Browse files
committed
Also -mtune=native
1 parent 20f407d commit 5f98917

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Rake::ExtensionTask.new('libsass', gem_spec) do |ext|
2323
# Link C++ stdlib statically when building binary gems.
2424
ext.cross_config_options << '--enable-static-stdlib'
2525

26-
ext.cross_config_options << '--disable-march-native'
26+
ext.cross_config_options << '--disable-march-tune-native'
2727

2828
ext.cross_compiling do |spec|
2929
spec.files.reject! { |path| File.fnmatch?('ext/*', path) }

ext/extconf.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
end
2121

2222
# 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'
2626
end
2727

2828
if enable_config('lto', true)

0 commit comments

Comments
 (0)