Skip to content

Commit 7c95370

Browse files
Scripts: support finding llvm-symbolizer on Rocky for clang setup.
1 parent b524f6e commit 7c95370

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/test-with-asan.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -e
55
# If no arguments are specified runs the test task.
66
# The ASAN detection is known to work with the buildenv-core image or Ubuntu 22.04 with a clang setup.
77

8+
# ASAN shared library (gcc or clang setup)
89
if [ -z "$ASAN_LIB_SO" ]; then # If not supplied (e.g. by CI script), try to locate the lib:
910
ASAN_ARCH=$(uname -m) # x86_64 or aarch64
1011
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
2829
fi
2930
fi
3031

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
3138
if [ -z "$ASAN_SYMBOLIZER_PATH" ]; then
32-
## TODO what to look for when using gcc's lib?
3339
export ASAN_SYMBOLIZER_PATH="$(find /usr/lib/llvm-*/ -name llvm-symbolizer | tail -1)"
3440
fi
3541

0 commit comments

Comments
 (0)