diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2005-07-13 09:07:54 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2005-07-13 09:07:54 +0000 |
commit | 6f8e9bc2f6629a9bca09326ade6207e285db48e9 (patch) | |
tree | 6c6daf929fbeb5e3c341febd25cc1edbd0d46937 /pkgs | |
parent | a85877edaf9c9bc0b7721fd353d77629f9dc5867 (diff) |
* Make the grep call optional.
svn path=/nixpkgs/trunk/; revision=3330
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/build-support/gcc-wrapper/gcc-wrapper.sh | 10 | ||||
-rw-r--r-- | pkgs/stdenv/freebsd/prehook.sh | 5 |
2 files changed, 11 insertions, 4 deletions
diff --git a/pkgs/build-support/gcc-wrapper/gcc-wrapper.sh b/pkgs/build-support/gcc-wrapper/gcc-wrapper.sh index 4db12afb5ce85..7de57afc3f815 100644 --- a/pkgs/build-support/gcc-wrapper/gcc-wrapper.sh +++ b/pkgs/build-support/gcc-wrapper/gcc-wrapper.sh @@ -116,6 +116,10 @@ fi # Call the real `gcc'. Filter out warnings from stderr about unused # `-B' flags, since they confuse some programs. Deep bash magic to # apply grep to stderr (by swapping stdin/stderr twice). -(@gccProg@ ${extraBefore[@]} "${params[@]}" ${extraAfter[@]} 3>&2 2>&1 1>&3- \ - | (grep -v 'file path prefix' || true); exit ${PIPESTATUS[0]}) 3>&2 2>&1 1>&3- -exit $? +if test -z "$NIX_GCC_NEEDS_GREP"; then + @gccProg@ ${extraBefore[@]} "${params[@]}" ${extraAfter[@]} +else + (@gccProg@ ${extraBefore[@]} "${params[@]}" ${extraAfter[@]} 3>&2 2>&1 1>&3- \ + | (grep -v 'file path prefix' || true); exit ${PIPESTATUS[0]}) 3>&2 2>&1 1>&3- + exit $? +fi diff --git a/pkgs/stdenv/freebsd/prehook.sh b/pkgs/stdenv/freebsd/prehook.sh index 5dcc55fdf077c..a82f5d21dfcee 100644 --- a/pkgs/stdenv/freebsd/prehook.sh +++ b/pkgs/stdenv/freebsd/prehook.sh @@ -1,4 +1,7 @@ export NIX_ENFORCE_PURITY= alias make=gmake export MAKE=gmake -shopt -s expand_aliases \ No newline at end of file +shopt -s expand_aliases + +# Filter out stupid GCC warnings (in gcc-wrapper). +export NIX_GCC_NEEDS_GREP=1 |