about summary refs log tree commit diff
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-03-06 10:15:05 -0600
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2019-11-03 14:52:44 +0100
commit5b46a7c240fe9e22a673d7dbd107498e042b437b (patch)
tree6f340ce54f9d6b5c57c6a5b52ea3d9c2dca81e70 /pkgs/development/compilers
parent9920076549d1d8fb4193285045bbd3022b3f21de (diff)
downloadnixlib-5b46a7c240fe9e22a673d7dbd107498e042b437b.tar
nixlib-5b46a7c240fe9e22a673d7dbd107498e042b437b.tar.gz
nixlib-5b46a7c240fe9e22a673d7dbd107498e042b437b.tar.bz2
nixlib-5b46a7c240fe9e22a673d7dbd107498e042b437b.tar.lz
nixlib-5b46a7c240fe9e22a673d7dbd107498e042b437b.tar.xz
nixlib-5b46a7c240fe9e22a673d7dbd107498e042b437b.tar.zst
nixlib-5b46a7c240fe9e22a673d7dbd107498e042b437b.zip
gcc7: make building w/LTO support optional, don't use in bootstrap tools
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/gcc/7/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/compilers/gcc/7/default.nix b/pkgs/development/compilers/gcc/7/default.nix
index 68c05d289784..39b3e4734fe2 100644
--- a/pkgs/development/compilers/gcc/7/default.nix
+++ b/pkgs/development/compilers/gcc/7/default.nix
@@ -6,6 +6,7 @@
 , profiledCompiler ? false
 , staticCompiler ? false
 , enableShared ? true
+, enableLTO ? true
 , texinfo ? null
 , perl ? null # optional, for texi2pod (then pod2man)
 , gmp, mpfr, libmpc, gettext, which
@@ -257,7 +258,7 @@ stdenv.mkDerivation ({
 
     # Basic configuration
     [
-      "--enable-lto"
+      (if enableLTO then "--enable-lto" else "--disable-lto")
       "--disable-libstdcxx-pch"
       "--without-included-gettext"
       "--with-system-zlib"