Skip to content

Commit 39f6c53

Browse files
bors[bot]vext01
andauthored
97: Check ykllvm builds without assertions. r=ltratt a=vext01 Co-authored-by: Edd Barrett <[email protected]>
2 parents a02f47d + 31fb87e commit 39f6c53

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.buildbot.sh

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ cd build
99
# Disabling default PIE due to:
1010
# https://github.com/llvm/llvm-project/issues/57085
1111
cmake -DCMAKE_INSTALL_PREFIX=${INST_DIR} \
12-
-DLLVM_INSTALL_UTILS=On \
12+
-DLLVM_INSTALL_UTILS=ON \
1313
-DCMAKE_BUILD_TYPE=release \
14-
-DLLVM_ENABLE_ASSERTIONS=On \
14+
-DLLVM_ENABLE_ASSERTIONS=ON \
1515
-DLLVM_ENABLE_PROJECTS="lld;clang" \
1616
-DCLANG_DEFAULT_PIE_ON_LINUX=OFF \
1717
-DBUILD_SHARED_LIBS=ON \
@@ -51,3 +51,24 @@ cmake --build build --target check-all
5151
# ../test-suite
5252
#make -j `nproc`
5353
#llvm-lit -v -j 1 -o results.json .
54+
55+
# Check ykllvm builds with assertions disabled.
56+
#
57+
# In the past things like `Value::dump()` have slipped in to the repo and these
58+
# are not available if LLVM is built without assertions (you'd get a linker
59+
# error).
60+
rm -rf build
61+
mkdir build
62+
cd build
63+
cmake -DCMAKE_INSTALL_PREFIX=${INST_DIR} \
64+
-DLLVM_INSTALL_UTILS=ON \
65+
-DCMAKE_BUILD_TYPE=release \
66+
-DLLVM_ENABLE_ASSERTIONS=OFF \
67+
-DLLVM_ENABLE_PROJECTS="lld;clang" \
68+
-DCLANG_DEFAULT_PIE_ON_LINUX=OFF \
69+
-DBUILD_SHARED_LIBS=ON \
70+
-DCMAKE_C_COMPILER=/usr/bin/clang \
71+
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
72+
-GNinja \
73+
../llvm
74+
cmake --build .

0 commit comments

Comments
 (0)