diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-06-14 22:21:49 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-06-14 22:21:49 +0000 |
commit | 90467a679a4e45c035b126701a0450857f3c4483 (patch) | |
tree | 2c0613901ee092636e3758146dd94ec713b4d01f | |
parent | 355afd2bb150dce5fb0c24569b2860e9b1fa6ec4 (diff) | |
download | compiler-rt-90467a679a4e45c035b126701a0450857f3c4483.tar.gz |
build/clang_darwin: Fix previous change to CheckArches to not cause problem when
command produces error output on stdout instead of stderr (and suppress the
stderr output while at it).
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@133019 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | make/platform/clang_darwin.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/make/platform/clang_darwin.mk b/make/platform/clang_darwin.mk index 0d6dbcb30..99baacff3 100644 --- a/make/platform/clang_darwin.mk +++ b/make/platform/clang_darwin.mk @@ -12,7 +12,8 @@ CheckArches = \ $(shell \ result=""; \ for arch in $(1); do \ - if $(CC) -arch $$arch -c -x c /dev/null -o /dev/null; then \ + if $(CC) -arch $$arch -c -x c /dev/null \ + -o /dev/null > /dev/null 2> /dev/null; then \ result="$$result$$arch "; \ fi; \ done; \ |