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 | 5c5d3612360b27296ebe5465d2b6833a5b0aaa2a (patch) | |
tree | 430fd961e118707ef997fabca41b46ed4228d116 /compiler-rt | |
parent | 74ba2623ce6b13627865eac60ddd7c1ec1048a3b (diff) | |
download | bcm5719-llvm-5c5d3612360b27296ebe5465d2b6833a5b0aaa2a.tar.gz bcm5719-llvm-5c5d3612360b27296ebe5465d2b6833a5b0aaa2a.zip |
clang/darwin: Tweak CheckArches function to use CC and to not spew output.
llvm-svn: 131656
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/make/platform/clang_darwin.mk | 5 |
1 files changed, 3 insertions, 2 deletions
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) |