Most sanitizers don't support static linking. One primary reason is the incompatibility with interceptors. `GetTlsSize` is another reason. asan/memprof use `__interception::DoesNotSupportStaticLinking` (`_DYNAMIC` reference) to reject -static at link time. Port this detector to other sanitizers. dfsan actually supports -static for certain cases. Don't touch dfsan.
3 lines
75 B
C
3 lines
75 B
C
// UNSUPPORTED: hwasan, ubsan
|
|
// RUN: not %clangxx -static %s -o /dev/null
|