diff --git a/ext/extconf.rb b/ext/extconf.rb index 36652f36..6d925dab 100644 --- a/ext/extconf.rb +++ b/ext/extconf.rb @@ -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'