[llvm-commits] [compiler-rt] r131656 - /compiler-rt/trunk/make/platform/clang_darwin.mk

Daniel Dunbar daniel at zuster.org
Thu May 19 11:02:55 PDT 2011


Author: ddunbar
Date: Thu May 19 13:02:55 2011
New Revision: 131656

URL: http://llvm.org/viewvc/llvm-project?rev=131656&view=rev
Log:
clang/darwin: Tweak CheckArches function to use CC and to not spew output.

Modified:
    compiler-rt/trunk/make/platform/clang_darwin.mk

Modified: compiler-rt/trunk/make/platform/clang_darwin.mk
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/make/platform/clang_darwin.mk?rev=131656&r1=131655&r2=131656&view=diff
==============================================================================
--- compiler-rt/trunk/make/platform/clang_darwin.mk (original)
+++ compiler-rt/trunk/make/platform/clang_darwin.mk Thu May 19 13:02:55 2011
@@ -12,8 +12,9 @@
   $(shell \
     result=""; \
     for arch in $(1); do \
-      gcc -arch $$arch; \
-      if test $$? == 1; then result="$$result$$arch "; fi; \
+      if $(CC) -arch $$arch -dumpversion > /dev/null; then \
+        result="$$result$$arch "; \
+      fi; \
     done; \
     echo $$result)
 





More information about the llvm-commits mailing list