This is an archive of the discontinued LLVM Phabricator instance.

Architectures for darwin need to be conditionalized based on the operating system.
AbandonedPublic

Authored by beanz on Jul 9 2015, 11:15 AM.

Details

Summary

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.

Diff Detail

Event Timeline

beanz updated this revision to Diff 29361.Jul 9 2015, 11:15 AM
beanz retitled this revision from to Architectures for darwin need to be conditionalized based on the operating system..
beanz updated this object.
beanz added a subscriber: llvm-commits.
samsonov added inline comments.Jul 15 2015, 3:19 PM
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.

samsonov edited edge metadata.Jul 15 2015, 3:19 PM

(sorry for the late response)

beanz abandoned this revision.Aug 6 2015, 2:15 PM

I'm consolidating this review under D11820 because the fragmented conversation on multiple review threads was not constructive.

-Chris