diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2019-11-03 15:35:19 +0100 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-11-03 16:04:52 +0100 |
commit | 458964dea2ccdc65c245bc22af0e3b55687e9d6b (patch) | |
tree | 164f38583218787c8c1e995c85aca861c2b835bd /pkgs/development | |
parent | eee1e3c1b6956136c2f6a051d063278dc9b2111a (diff) | |
download | nixlib-458964dea2ccdc65c245bc22af0e3b55687e9d6b.tar nixlib-458964dea2ccdc65c245bc22af0e3b55687e9d6b.tar.gz nixlib-458964dea2ccdc65c245bc22af0e3b55687e9d6b.tar.bz2 nixlib-458964dea2ccdc65c245bc22af0e3b55687e9d6b.tar.lz nixlib-458964dea2ccdc65c245bc22af0e3b55687e9d6b.tar.xz nixlib-458964dea2ccdc65c245bc22af0e3b55687e9d6b.tar.zst nixlib-458964dea2ccdc65c245bc22af0e3b55687e9d6b.zip |
gcc8: make building w/LTO support optional, fixes eval
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/compilers/gcc/8/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/compilers/gcc/8/default.nix b/pkgs/development/compilers/gcc/8/default.nix index b84b89583253..52f568b2ed94 100644 --- a/pkgs/development/compilers/gcc/8/default.nix +++ b/pkgs/development/compilers/gcc/8/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 @@ -247,7 +248,7 @@ stdenv.mkDerivation ({ # Basic configuration [ - "--enable-lto" + (if enableLTO then "--enable-lto" else "--disable-lto") "--disable-libstdcxx-pch" "--without-included-gettext" "--with-system-zlib" |