Skip to content

Commit e0d96ab

Browse files
committed
gh-155375: -shared-libsan for linux ASAN builds
1 parent 5e0c502 commit e0d96ab

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎Tools/pixi-packages/build.sh‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ if [[ "${PYTHON_VARIANT}" == "freethreading" ]]; then
77
elif [[ "${PYTHON_VARIANT}" == "asan" ]]; then
88
CONFIGURE_EXTRA="--with-address-sanitizer"
99
export ASAN_OPTIONS="strict_init_order=true"
10+
if [[ "$target_platform" == linux-* ]]; then
11+
export LDFLAGS="-shared-libsan $LDFLAGS"
12+
fi
1013
elif [[ "${PYTHON_VARIANT}" == "tsan_freethreading" ]]; then
1114
CONFIGURE_EXTRA="--disable-gil --with-thread-sanitizer"
1215
export TSAN_OPTIONS="suppressions=${SRC_DIR}/Tools/tsan/suppressions_free_threading.txt"

0 commit comments

Comments
 (0)