summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-06-13 19:18:23 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-06-13 19:18:23 +0000
commit47e71a3711518cfba9febda25cde30af37132edc (patch)
treef87cfec091cdc76e77f108fb80efde0b2d9dad16 /compiler-rt
parent351a3f881fa393a59afe45d4aa8e8fc0f75fa90a (diff)
downloadbcm5719-llvm-47e71a3711518cfba9febda25cde30af37132edc.tar.gz
bcm5719-llvm-47e71a3711518cfba9febda25cde30af37132edc.zip
build/clang_darwin: Improve archs check to verify we can not just recognize
arch, but actually compile a file with that arch. llvm-svn: 132928
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/make/platform/clang_darwin.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/make/platform/clang_darwin.mk b/compiler-rt/make/platform/clang_darwin.mk
index 6eb10c82267..0d6dbcb30ca 100644
--- a/compiler-rt/make/platform/clang_darwin.mk
+++ b/compiler-rt/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; \
OpenPOWER on IntegriCloud