This patch enables linking of the static archive when fsanitize-stable-abi is set and stops linking to the asan dylib. To link to the Address Sanitizer stable abi static library use "-fsanitize=address -fsanitize-stable-abi" Updates a test with these flags. rdar://112480890 Differential Revision: https://reviews.llvm.org/D156718
6 lines
282 B
C++
6 lines
282 B
C++
// RUN: %clang_asan_abi -O2 -c -fsanitize-stable-abi -fsanitize=address -O0 %s -o %t.o
|
|
// RUN: %clangxx -c %p/../../../lib/asan_abi/asan_abi.cpp -o asan_abi.o
|
|
// RUN: %clangxx -o %t %t.o -fsanitize-stable-abi -fsanitize=address asan_abi.o && %run %t 2>&1
|
|
|
|
int main() { return 0; }
|