Disable LTO in CI build with old gcc
This commit is contained in:
parent
593ed84f1b
commit
3c49517b76
@ -36,10 +36,16 @@ include(CheckIPOSupported)
|
|||||||
check_ipo_supported(RESULT ipo_available OUTPUT error LANGUAGES C)
|
check_ipo_supported(RESULT ipo_available OUTPUT error LANGUAGES C)
|
||||||
|
|
||||||
# Enable IPO by default, if available
|
# Enable IPO by default, if available
|
||||||
if(ipo_available)
|
if(NOT DEFINED CMAKE_INTERPROCEDURAL_OPTIMIZATION)
|
||||||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
if(ipo_available)
|
||||||
else()
|
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||||
message(WARNING "IPO is not supported, expect performance penalty")
|
else()
|
||||||
|
message(WARNING "IPO is not supported, disabling")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT CMAKE_INTERPROCEDURAL_OPTIMIZATION)
|
||||||
|
message(WARNING "IPO is not enabled, expect performance penalty")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Extra build type for AddressSanitizer (Asan)
|
# Extra build type for AddressSanitizer (Asan)
|
||||||
|
@ -92,6 +92,9 @@ let
|
|||||||
stdenv = stdenv;
|
stdenv = stdenv;
|
||||||
}).overrideAttrs (old: {
|
}).overrideAttrs (old: {
|
||||||
pname = old.name + "@" + stdenv.cc.cc.version;
|
pname = old.name + "@" + stdenv.cc.cc.version;
|
||||||
|
cmakeFlags = old.cmakeFlags ++ [
|
||||||
|
"-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF"
|
||||||
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
oldCompilers = [
|
oldCompilers = [
|
||||||
|
Loading…
Reference in New Issue
Block a user