Skip to content

Commit

Permalink
Merge pull request #192 from bradparker/master
Browse files Browse the repository at this point in the history
Fix check to disable LTO by default
  • Loading branch information
bolandrm authored Jun 2, 2020
2 parents 2adab27 + 04407fa commit 4fce2b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# darwin nix clang doesn't support lto
# disable -lto flag for darwin + nix
# see: https://github.com/sass/sassc-ruby/issues/148
enable_lto_by_default = (Gem::Platform.local.os == "darwin" && !ENV['NIX_CC'].nil?)
enable_lto_by_default = (Gem::Platform.local.os == "darwin" && ENV['NIX_CC'].nil?)

if enable_config('lto', enable_lto_by_default)
$CFLAGS << ' -flto'
Expand Down

0 comments on commit 4fce2b6

Please sign in to comment.