summary refs log tree commit diff
path: root/pkgs/build-support/gcc-cross-wrapper/gcc-wrapper.sh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-09-23 19:43:38 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-09-23 19:43:38 +0200
commit66dedaa6eec453b4cecb084e9bc1996aee7ec82c (patch)
tree81e923020fc4c5796c933f9d6fe5fb56f2c9638e /pkgs/build-support/gcc-cross-wrapper/gcc-wrapper.sh
parentcb9f69c05272e638cf6ff14eab1216a06b61897d (diff)
downloadnixlib-66dedaa6eec453b4cecb084e9bc1996aee7ec82c.tar
nixlib-66dedaa6eec453b4cecb084e9bc1996aee7ec82c.tar.gz
nixlib-66dedaa6eec453b4cecb084e9bc1996aee7ec82c.tar.bz2
nixlib-66dedaa6eec453b4cecb084e9bc1996aee7ec82c.tar.lz
nixlib-66dedaa6eec453b4cecb084e9bc1996aee7ec82c.tar.xz
nixlib-66dedaa6eec453b4cecb084e9bc1996aee7ec82c.tar.zst
nixlib-66dedaa6eec453b4cecb084e9bc1996aee7ec82c.zip
gcc-wrapper: Remove NIX_GCC_NEEDS_GREP
This is not needed on any currently supported platform.
Diffstat (limited to 'pkgs/build-support/gcc-cross-wrapper/gcc-wrapper.sh')
-rw-r--r--pkgs/build-support/gcc-cross-wrapper/gcc-wrapper.sh11
1 files changed, 1 insertions, 10 deletions
diff --git a/pkgs/build-support/gcc-cross-wrapper/gcc-wrapper.sh b/pkgs/build-support/gcc-cross-wrapper/gcc-wrapper.sh
index f954cae05d86..ec1f6004edd9 100644
--- a/pkgs/build-support/gcc-cross-wrapper/gcc-wrapper.sh
+++ b/pkgs/build-support/gcc-cross-wrapper/gcc-wrapper.sh
@@ -114,13 +114,4 @@ fi
 # We want gcc to call the wrapper linker, not that of binutils.
 export PATH="@ldPath@:$PATH"
 
-# 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).
-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    
+exec @gccProg@ ${extraBefore[@]} "${params[@]}" ${extraAfter[@]}