[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
Fri Feb 11 11:57:07 PST 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG10953974ed6b: [libc++][NFC] Work around false positive ODR violations from ASan. (authored by var-const).

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.407975.patch
Type: text/x-patch
Size: 455 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220211/9c1773a8/attachment.bin>


More information about the libcxx-commits mailing list