Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Tools/pixi-packages/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ if [[ "${PYTHON_VARIANT}" == "freethreading" ]]; then
elif [[ "${PYTHON_VARIANT}" == "asan" ]]; then
CONFIGURE_EXTRA="--with-address-sanitizer"
export ASAN_OPTIONS="strict_init_order=true"
if [[ "$target_platform" == linux-* && "$c_compiler" == "clang" ]]; then
export LDFLAGS="-shared-libsan $LDFLAGS"
Comment thread
StanFromIreland marked this conversation as resolved.
fi
Comment on lines +10 to +12

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to do this for tsan too

elif [[ "${PYTHON_VARIANT}" == "tsan_freethreading" ]]; then
CONFIGURE_EXTRA="--disable-gil --with-thread-sanitizer"
export TSAN_OPTIONS="suppressions=${SRC_DIR}/Tools/tsan/suppressions_free_threading.txt"
Expand Down
2 changes: 1 addition & 1 deletion Tools/pixi-packages/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ outputs:
- libuuid
- libmpdec-devel
- expat
- if: osx and "san" in variant
- if: '"san" in variant'
then:
- libcompiler-rt

Expand Down