Skip to content

Support SANITIZE_THREAD in llvm.mk#42468

Merged
vtjnash merged 1 commit intoJuliaLang:masterfrom
tkf:tsan-make
Oct 2, 2021
Merged

Support SANITIZE_THREAD in llvm.mk#42468
vtjnash merged 1 commit intoJuliaLang:masterfrom
tkf:tsan-make

Conversation

@tkf
Copy link
Copy Markdown
Member

@tkf tkf commented Oct 2, 2021

Previously, it looks like that it was implicitly assumed that LLVM_SANITIZE means ASAN when SANITIZE_MEMORY is not set

ifeq ($(LLVM_SANITIZE),1)
ifeq ($(SANITIZE_MEMORY),1)
LLVM_BUILDTYPE := $(LLVM_BUILDTYPE)+MSAN
else
LLVM_BUILDTYPE := $(LLVM_BUILDTYPE)+ASAN
endif
endif

This patch adds a branch for SANITIZE_THREAD as well.

(I can compile LLVM with this patch but still haven't managed to compile julia with TSAN yet.)

@vtjnash vtjnash merged commit f1baec3 into JuliaLang:master Oct 2, 2021
@tkf tkf deleted the tsan-make branch October 2, 2021 20:51
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Feb 22, 2022
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants