GeezerVison is showing github.com — Scripts: support finding llvm-symbolizer on Rocky for clang setup. · jamestiotio/objectbox-java@7c95370
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: scripts/test-with-asan.sh +7-1Lines changed: 7 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
5 | 5 | # If no arguments are specified runs the test task. |
6 | 6 | # The ASAN detection is known to work with the buildenv-core image or Ubuntu 22.04 with a clang setup. |
7 | 7 |
|
| 8 | +# ASAN shared library (gcc or clang setup) |
8 | 9 | if [ -z "$ASAN_LIB_SO" ]; then # If not supplied (e.g. by CI script), try to locate the lib: |
9 | 10 | ASAN_ARCH=$(uname -m) # x86_64 or aarch64 |
10 | 11 | echo "No ASAN_LIB_SO defined, trying to locate dynamically..." |
@@ -28,8 +29,13 @@ if [ -z "$ASAN_LIB_SO" ]; then # If not supplied (e.g. by CI script), try to lo |
28 | 29 | fi |
29 | 30 | fi |
30 | 31 |
|
| 32 | +# llvm-symbolizer (clang setup only) |
| 33 | +# Rocky Linux 8 (buildenv-core) |
| 34 | +if [ -z "$ASAN_SYMBOLIZER_PATH" ]; then |
| 35 | + export ASAN_SYMBOLIZER_PATH="$(find /usr/local/bin/ -name llvm-symbolizer | tail -1 )" |
| 36 | +fi |
| 37 | +# Ubuntu 22.04 |
31 | 38 | if [ -z "$ASAN_SYMBOLIZER_PATH" ]; then |
32 | | - ## TODO what to look for when using gcc's lib? |
33 | 39 | export ASAN_SYMBOLIZER_PATH="$(find /usr/lib/llvm-*/ -name llvm-symbolizer | tail -1)" |
34 | 40 | fi |
35 | 41 |
|
|