Skip to content

Commit c138058

Browse files
authored
Cirrus CI: Adapt to FreeBSD bumping default LLVM from 15 to 19 (#4865)
The lit-tests fail with LLVM 19 and 18 (PGO and sanitizer issues), so sticking with LLVM 15.
1 parent cc4590b commit c138058

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.cirrus.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,17 @@ task:
220220
-DD_COMPILER_FLAGS="-O -flto=full -defaultlib=phobos2-ldc-lto,druntime-ldc-lto"
221221
-DEXTRA_CXXFLAGS=-flto=full
222222
PARALLELISM: 4
223-
CC: clang
223+
CC: clang15
224+
CXX: clang++15
224225
install_prerequisites_script: |
225226
cd $CIRRUS_WORKING_DIR/..
226227
sysctl -n hw.ncpu
227-
pkg install -y git cmake ninja gmake llvm bash gtar 7-zip ldc
228+
pkg install -y git cmake ninja gmake llvm15 bash gtar 7-zip ldc
228229
python3 --version
229230
python3 -m ensurepip
231+
# set up default llvm-config
232+
ls -l /usr/local/bin/llvm-config*
233+
ln -sf llvm-config15 /usr/local/bin/llvm-config
230234
clone_submodules_early_script: |
231235
cd $CIRRUS_WORKING_DIR
232236
git submodule update --init --depth $CIRRUS_CLONE_DEPTH
@@ -239,6 +243,7 @@ task:
239243
-DCMAKE_BUILD_TYPE=Release \
240244
-DD_COMPILER=ldmd2 \
241245
-DBUILD_SHARED_LIBS=OFF \
246+
-DLDC_DYNAMIC_COMPILE=OFF \
242247
-DBUILD_LTO_LIBS=ON
243248
ninja -j$PARALLELISM
244249
bin/ldc2 -version

0 commit comments

Comments
 (0)