* r3317 was wrong: grep should be applied to gcc's stderr, not stdout.

svn path=/nixpkgs/trunk/; revision=3329
This commit is contained in:
Eelco Dolstra 2005-07-13 08:45:57 +00:00
parent f0d6ad6071
commit a85877edaf

View File

@ -113,8 +113,9 @@ if test -n "$NIX_GCC_WRAPPER_EXEC_HOOK"; then
fi fi
# Call the real `gcc'. Filter out warnings about unused `-B' flags, # Call the real `gcc'. Filter out warnings from stderr about unused
# since they confuse some programs. # `-B' flags, since they confuse some programs. Deep bash magic to
@gccProg@ ${extraBefore[@]} "${params[@]}" ${extraAfter[@]} \ # apply grep to stderr (by swapping stdin/stderr twice).
| (grep -v 'file path prefix' || true) (@gccProg@ ${extraBefore[@]} "${params[@]}" ${extraAfter[@]} 3>&2 2>&1 1>&3- \
exit ${PIPESTATUS[0]} | (grep -v 'file path prefix' || true); exit ${PIPESTATUS[0]}) 3>&2 2>&1 1>&3-
exit $?