forked from OSchip/llvm-project
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:
parent
351a3f881f
commit
47e71a3711
|
|
@ -12,7 +12,7 @@ CheckArches = \
|
||||||
$(shell \
|
$(shell \
|
||||||
result=""; \
|
result=""; \
|
||||||
for arch in $(1); do \
|
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 "; \
|
result="$$result$$arch "; \
|
||||||
fi; \
|
fi; \
|
||||||
done; \
|
done; \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue