diff options
author | Will Dietz <w@wdtz.org> | 2018-03-06 10:15:05 -0600 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-11-03 14:52:44 +0100 |
commit | 5b46a7c240fe9e22a673d7dbd107498e042b437b (patch) | |
tree | 6f340ce54f9d6b5c57c6a5b52ea3d9c2dca81e70 /pkgs/development | |
parent | 9920076549d1d8fb4193285045bbd3022b3f21de (diff) |
gcc7: make building w/LTO support optional, don't use in bootstrap tools
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/compilers/gcc/7/default.nix | 3 |
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 68c05d289784a..39b3e4734fe27 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" |