[PATCH] D85082: On FreeBSD, add -pthread to ASan dynamic compile flags for tests
Dimitry Andric via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 15 04:05:50 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3aecf4bdf3f8: On FreeBSD, add -pthread to ASan dynamic compile flags for tests (authored by dim).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85082/new/
https://reviews.llvm.org/D85082
Files:
compiler-rt/test/asan/lit.cfg.py
Index: compiler-rt/test/asan/lit.cfg.py
===================================================================
--- compiler-rt/test/asan/lit.cfg.py
+++ compiler-rt/test/asan/lit.cfg.py
@@ -91,9 +91,12 @@
asan_dynamic_flags = []
if config.asan_dynamic:
asan_dynamic_flags = ["-shared-libasan"]
- # On Windows, we need to simulate "clang-cl /MD" on the clang driver side.
if platform.system() == 'Windows':
+ # On Windows, we need to simulate "clang-cl /MD" on the clang driver side.
asan_dynamic_flags += ["-D_MT", "-D_DLL", "-Wl,-nodefaultlib:libcmt,-defaultlib:msvcrt,-defaultlib:oldnames"]
+ elif platform.system() == 'FreeBSD':
+ # On FreeBSD, we need to add -pthread to ensure pthread functions are available.
+ asan_dynamic_flags += ['-pthread']
config.available_features.add("asan-dynamic-runtime")
else:
config.available_features.add("asan-static-runtime")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85082.285837.patch
Type: text/x-patch
Size: 892 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200815/eb85bb40/attachment.bin>
More information about the llvm-commits
mailing list