File tree 1 file changed +23
-2
lines changed
1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change 9
9
# Disabling default PIE due to:
10
10
# https://github.com/llvm/llvm-project/issues/57085
11
11
cmake -DCMAKE_INSTALL_PREFIX=${INST_DIR} \
12
- -DLLVM_INSTALL_UTILS=On \
12
+ -DLLVM_INSTALL_UTILS=ON \
13
13
-DCMAKE_BUILD_TYPE=release \
14
- -DLLVM_ENABLE_ASSERTIONS=On \
14
+ -DLLVM_ENABLE_ASSERTIONS=ON \
15
15
-DLLVM_ENABLE_PROJECTS=" lld;clang" \
16
16
-DCLANG_DEFAULT_PIE_ON_LINUX=OFF \
17
17
-DBUILD_SHARED_LIBS=ON \
@@ -51,3 +51,24 @@ cmake --build build --target check-all
51
51
# ../test-suite
52
52
# make -j `nproc`
53
53
# 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