Sanitizers on Darwin are built as dynamic libraries, not static libraries. Sanitizers will have their C++ dependency satisfied internally (LC_LOAD_DYLIB) in the libclang_rt dylib. As long as the sanitizers stay dynamic and not static, linking against C++ when enabling a sanitizer becomes over linkage.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Similar on all the sanitizers.
test/Driver/darwin-sanitizer-ld.c | ||
---|---|---|
8 | I think that this can be made into a stronger assertion. Changing it to: // CHECK-ASAN-NOT: stdc++ seems better. While you are here, can you double up the tests and check against both libstdc++ and libc++? |
I think that this can be made into a stronger assertion. Changing it to:
seems better.
While you are here, can you double up the tests and check against both libstdc++ and libc++?