Add no LTO tests for old gcc versions too

This commit is contained in:
Rodrigo Arias 2022-12-19 13:18:54 +01:00
parent 3c49517b76
commit 168ba99828
2 changed files with 17 additions and 2 deletions

View File

@ -19,12 +19,19 @@ build:old-gcc:
stage: build
tags:
- nix
script:
script:
- nix build -L --tarball-ttl 0 --file nix/rt.nix bsc.oldOvnis
build:old-gcc-no-lto:
stage: build
tags:
- nix
script:
- nix build -L --tarball-ttl 0 --file nix/rt.nix bsc.oldOvnisNoLTO
build:rt-tests:
stage: build
tags:
- nix
script:
script:
- nix build -L --tarball-ttl 0 --file nix/rt.nix bsc.ovni-rt

View File

@ -110,6 +110,14 @@ let
oldOvnis = map last.genOldOvni last.oldCompilers;
genOldOvniNoLTO = stdenv: (last.genOldOvni stdenv).overrideAttrs (old: {
cmakeFlags = old.cmakeFlags ++ [
"-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF"
];
});
oldOvnisNoLTO = map last.genOldOvniNoLTO last.oldCompilers;
# Now we rebuild ovni with the Nanos6 and nOS-V versions, which were
# linked to the previous ovni. We need to be able to exit the chroot
# to run Nanos6 tests, as they require access to /sys for hwloc