Created attachment 13803 [details] try linker instead of interrogating it Older linker versions will not report supported targets in -v output while still supporting the target: michael@osx105 ~/llvm $ ~/Gentoo/usr/i686-apple-darwin9/binutils-bin/4.2/ld64 -v @(#)PROGRAM:ld PROJECT:ld64-127.2 (Gentoo binutils-apple-4.2-r1) LLVM version 3.5.1 This will make the Makefile drop all targets which in turn will make the lipo run fail and compile abort. The attached patch makes clang_darwin.mk try to link a dylib from clang_darwin_test_input for the target to determine support. Tested against HEAD as of 2015-02-02.
I think Bob is the one most invested in clang_darwin.mk.
Makefiles are gone. If it's still relevant please file code review according to: https://llvm.org/docs/DeveloperPolicy.html#id13