From 5c5d3612360b27296ebe5465d2b6833a5b0aaa2a Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 19 May 2011 18:02:55 +0000 Subject: clang/darwin: Tweak CheckArches function to use CC and to not spew output. llvm-svn: 131656 --- compiler-rt/make/platform/clang_darwin.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'compiler-rt') diff --git a/compiler-rt/make/platform/clang_darwin.mk b/compiler-rt/make/platform/clang_darwin.mk index 564026ea769..6eb10c82267 100644 --- a/compiler-rt/make/platform/clang_darwin.mk +++ b/compiler-rt/make/platform/clang_darwin.mk @@ -12,8 +12,9 @@ CheckArches = \ $(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) -- cgit v1.2.3