From 04407faf6fbd400f1c9f72f752395e1dfa5865f7 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Fri, 20 Mar 2020 16:01:37 +1000 Subject: [PATCH] Fix check to disable LTO by default --- ext/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'