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).

llvm-svn: 133019
This commit is contained in:
Daniel Dunbar 2011-06-14 22:21:49 +00:00
parent 164b1d753a
commit 7487bbb72a
1 changed files with 2 additions and 1 deletions
compiler-rt/make/platform

View File

@ -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; \