File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change 99# Disabling default PIE due to:
1010# https://github.com/llvm/llvm-project/issues/57085
1111cmake -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 .
You can’t perform that action at this time.
0 commit comments