diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-06-13 19:18:23 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-06-13 19:18:23 +0000 |
commit | 355afd2bb150dce5fb0c24569b2860e9b1fa6ec4 (patch) | |
tree | fa5803edcab124f71ab815a86f62b5aa0758ef5b /make | |
parent | 7482815716cd9b87931d82dca7298fc3c707229f (diff) |
build/clang_darwin: Improve archs check to verify we can not just recognize
arch, but actually compile a file with that arch.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@132928 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'make')
-rw-r--r-- | make/platform/clang_darwin.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/make/platform/clang_darwin.mk b/make/platform/clang_darwin.mk index 6eb10c822..0d6dbcb30 100644 --- a/make/platform/clang_darwin.mk +++ b/make/platform/clang_darwin.mk @@ -12,7 +12,7 @@ CheckArches = \ $(shell \ result=""; \ for arch in $(1); do \ - if $(CC) -arch $$arch -dumpversion > /dev/null; then \ + if $(CC) -arch $$arch -c -x c /dev/null -o /dev/null; then \ result="$$result$$arch "; \ fi; \ done; \ |