gcc: disable LTO on i686

as a workaround to fix build after updating stdenv bootstrap
(in the followup commit).  Interested parties can improve this later.
This commit is contained in:
Vladimír Čunát 2020-02-05 13:02:04 +01:00
parent ea8ae88f04
commit 22284b07ef
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -8107,6 +8107,8 @@ in
# PGO seems to speed up compilation by gcc by ~10%, see #445 discussion
profiledCompiler = with stdenv; (!isDarwin && (isi686 || isx86_64));
enableLTO = !stdenv.isi686;
libcCross = if stdenv.targetPlatform != stdenv.buildPlatform then libcCross else null;
threadsCross = if stdenv.targetPlatform != stdenv.buildPlatform then threadsCross else null;