At the moment this isn't a really great way to handle this, but using the SANITIZER_COMMON_DARWIN_${os}_ARCHES which is per-os, is a good start.
Details
Diff Detail
Event Timeline
cmake/Modules/AddCompilerRT.cmake | ||
---|---|---|
22 | This linkflags change seem to be unrelated. Also, link flags makes no sense for CMake object libraries, which are essentially collections of ".o" files. Why do you need this? | |
23 | This doesn't look good - you essentially discard "ARCHS" argument of this function. See another comment - you might have to *restrict* the set passed in LIB_ARCHS, given architectures you can target on ${os}, but you still need to respect it. | |
lib/asan/CMakeLists.txt | ||
116 | I still think you should calculate set intersection of architectures supported by a given sanitizer, and architectures that we can target on specific OS. |
I'm consolidating this review under D11820 because the fragmented conversation on multiple review threads was not constructive.
-Chris
This linkflags change seem to be unrelated. Also, link flags makes no sense for CMake object libraries, which are essentially collections of ".o" files. Why do you need this?