[libcxx-commits] [PATCH] D119410: [libc++][NFC] Work around false positive ODR violations from ASan.
Konstantin Varlamov via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Feb 10 17:26:31 PST 2022
var-const updated this revision to Diff 407731.
var-const added a comment.
Add comment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119410/new/
https://reviews.llvm.org/D119410
Files:
libcxx/cmake/caches/Generic-asan.cmake
Index: libcxx/cmake/caches/Generic-asan.cmake
===================================================================
--- libcxx/cmake/caches/Generic-asan.cmake
+++ libcxx/cmake/caches/Generic-asan.cmake
@@ -1 +1,3 @@
set(LLVM_USE_SANITIZER "Address" CACHE STRING "")
+# This is a temporary (hopefully) workaround for an ASan issue (see https://llvm.org/D119410).
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mllvm -asan-use-private-alias=1" CACHE INTERNAL "")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119410.407731.patch
Type: text/x-patch
Size: 455 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220211/8b9e7bd7/attachment.bin>
More information about the libcxx-commits
mailing list