[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 12:13:44 PST 2022


var-const updated this revision to Diff 407635.
var-const marked an inline comment as done.
var-const added a comment.
Herald added a subscriber: mgorny.

Move flags to the cache.


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,2 @@
 set(LLVM_USE_SANITIZER "Address" CACHE STRING "")
+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.407635.patch
Type: text/x-patch
Size: 359 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220210/154ee6a8/attachment.bin>


More information about the libcxx-commits mailing list