forked from OSchip/llvm-project
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:
parent
164b1d753a
commit
7487bbb72a
compiler-rt/make/platform
|
@ -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; \
|
||||
|
|
Loading…
Reference in New Issue