summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-06-14 22:21:49 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-06-14 22:21:49 +0000
commit90467a679a4e45c035b126701a0450857f3c4483 (patch)
tree2c0613901ee092636e3758146dd94ec713b4d01f
parent355afd2bb150dce5fb0c24569b2860e9b1fa6ec4 (diff)
downloadcompiler-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.mk3
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; \