diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-05-19 18:02:55 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-05-19 18:02:55 +0000 |
commit | 96051e1bd0e4c60a65e8c059a719a4a72b229247 (patch) | |
tree | 6a09ce20f7d8884ead526d34b048e236c393091f | |
parent | 2f5efb0238df99509fb8dd53d218065abd8dff8b (diff) | |
download | compiler-rt-96051e1bd0e4c60a65e8c059a719a4a72b229247.tar.gz |
clang/darwin: Tweak CheckArches function to use CC and to not spew output.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@131656 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | make/platform/clang_darwin.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/make/platform/clang_darwin.mk b/make/platform/clang_darwin.mk index 564026ea7..6eb10c822 100644 --- a/make/platform/clang_darwin.mk +++ b/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) |