From 355afd2bb150dce5fb0c24569b2860e9b1fa6ec4 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 13 Jun 2011 19:18:23 +0000 Subject: 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 --- make/platform/clang_darwin.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; \ -- cgit v1.2.1