Skip to content

Commit

Permalink
Also -mtune=native
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Jun 4, 2019
1 parent 20f407d commit 5f98917
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Rake::ExtensionTask.new('libsass', gem_spec) do |ext|
# Link C++ stdlib statically when building binary gems.
ext.cross_config_options << '--enable-static-stdlib'

ext.cross_config_options << '--disable-march-native'
ext.cross_config_options << '--disable-march-tune-native'

ext.cross_compiling do |spec|
spec.files.reject! { |path| File.fnmatch?('ext/*', path) }
Expand Down
6 changes: 3 additions & 3 deletions ext/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
end

# Set to false when building binary gems
if enable_config('march-native', true)
$CFLAGS << ' -march=native'
$CXXFLAGS << ' -march=native'
if enable_config('march-tune-native', true)
$CFLAGS << ' -march=native -mtune=native'
$CXXFLAGS << ' -march=native -mtune=native'
end

if enable_config('lto', true)
Expand Down

0 comments on commit 5f98917

Please sign in to comment.