llvm/libcxx/cmake
Konstantin Varlamov 10953974ed [libc++][NFC] Work around false positive ODR violations from ASan.
This works around a known issue in ASan. ASan doesn't instrument weak
symbols. Because instrumentation increases object size, the binary can
end up with two versions of the same object, one instrumented and one
not instrumented, with different sizes, which ASan will report as an ODR
violation. In libc++, this affects typeinfo for `std::bad_function_call`
which is emitted as a weak symbol in the test executable and as a strong
symbol in the shared library.

The main open issue for ASan appears to be
https://github.com/google/sanitizers/issues/1017.

Differential Revision: https://reviews.llvm.org/D119410
2022-02-11 11:56:51 -08:00
..
caches [libc++][NFC] Work around false positive ODR violations from ASan. 2022-02-11 11:56:51 -08:00
Modules [cmake] Move HandleOutOfTreeLLVM to common cmake utils 2022-01-19 22:05:23 +00:00
config-ix.cmake [cmake] Partially deduplicate {llvm,compiler_rt}_check_linker_flag for runtime libs and llvm 2022-01-29 06:07:24 +00:00