Skip to content

Commit 24febab

Browse files
committed
[legacy] tests: Fix test for gcc15
Use C11 as standard C version when compiling FairRoot. The C code of the MbsApi can't be compiled with C23 which is the new default version with gcc15.
1 parent 6678e08 commit 24febab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/legacy/fairroot.sh.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ pushd $sourcedir
1111
mkdir -p build/install
1212
export FAIRROOTPATH="$(realpath ./build/install)"
1313
cmake -S. -Bbuild \
14-
-DCMAKE_INSTALL_PREFIX=$FAIRROOTPATH
14+
-DCMAKE_INSTALL_PREFIX=$FAIRROOTPATH \
15+
-DCMAKE_C_STANDARD=11
1516
cmake --build build --target install -j @NCPUS@
1617
pushd build
1718
ctest --output-on-failure -E "(ex_MQ_pixel|pixelSplitDDS).*" -j @NCPUS@ $(ctest --version | grep -q "3\.16" || echo "--repeat until-pass:5")

0 commit comments

Comments
 (0)