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
This commit is contained in:
Daniel Dunbar 2011-06-13 19:18:23 +00:00
parent 351a3f881f
commit 47e71a3711
1 changed files with 1 additions and 1 deletions

View File

@ -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; \