Skip to content

Commit 4fce2b6

Browse files
authored
Merge pull request #192 from bradparker/master
Fix check to disable LTO by default
2 parents 2adab27 + 04407fa commit 4fce2b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# darwin nix clang doesn't support lto
2828
# disable -lto flag for darwin + nix
2929
# see: https://github.com/sass/sassc-ruby/issues/148
30-
enable_lto_by_default = (Gem::Platform.local.os == "darwin" && !ENV['NIX_CC'].nil?)
30+
enable_lto_by_default = (Gem::Platform.local.os == "darwin" && ENV['NIX_CC'].nil?)
3131

3232
if enable_config('lto', enable_lto_by_default)
3333
$CFLAGS << ' -flto'

0 commit comments

Comments
 (0)