Don't invoke echo for stdin, read from /dev/null. OS X was intermittently hanging prior.

This commit is contained in:
Frederich Munch 2016-08-05 00:02:11 -04:00 committed by sftnight
parent 8fc1289cd4
commit d7bc590e03

View File

@ -492,7 +492,7 @@ namespace {
}
static const char *CppInclQuery =
"echo | LC_ALL=C " LLVM_CXX " -xc++ -E -v - 2>&1 >/dev/null "
"LC_ALL=C " LLVM_CXX " -xc++ -E -v /dev/null 2>&1 >/dev/null"
"| awk '/^#include </,/^End of search"
"/{if (!/^#include </ && !/^End of search/){ print }}' "
"| GREP_OPTIONS= grep -E \"(c|g)\\+\\+\"";