nixVersions.nix_2_10: enable LTO in GCC builds

This commit is contained in:
Thiago Kenji Okada
2022-07-15 12:00:45 -07:00
committed by Bernardo Meurer
parent b4093a24a8
commit 8251e3a1fd
@@ -167,6 +167,8 @@ self = stdenv.mkDerivation {
] ++ lib.optionals (!withLibseccomp) [
# RISC-V support in progress https://github.com/seccomp/libseccomp/pull/50
"--disable-seccomp-sandboxing"
] ++ lib.optionals (atLeast210 && stdenv.cc.isGNU) [
"--enable-lto"
];
makeFlags = [