cc-wrapper: fixup branch interactions

c0599fdd61 and changes on closure-size didn't go well together.
wip/yesman
Vladimír Čunát 8 years ago
parent ae74c356d9
commit f89a136fd5
  1. 4
      pkgs/build-support/cc-wrapper/cc-wrapper.sh
  2. 2
      pkgs/build-support/cc-wrapper/default.nix
  3. 4
      pkgs/build-support/cc-wrapper/gnat-wrapper.sh
  4. 4
      pkgs/build-support/cc-wrapper/ld-wrapper.sh

@ -1,7 +1,7 @@
#! @shell@ -e
path_backup="$PATH"
if [ -n "@coreutils@" ]; then
PATH="@coreutils@/bin:@gnugrep@/bin"
if [ -n "@coreutils_bin@" ]; then
PATH="@coreutils_bin@/bin:@gnugrep_bin@/bin"
fi
if [ -n "$NIX_CC_WRAPPER_START_HOOK" ]; then

@ -44,7 +44,7 @@ stdenv.mkDerivation {
preferLocalBuild = true;
inherit cc shell libc_bin libc_dev libc_lib binutils_bin coreutils_bin;
gnugrep = if nativeTools then "" else gnugrep;
gnugrep_bin = if nativeTools then "" else gnugrep;
passthru = { inherit libc nativeTools nativeLibc nativePrefix isGNU isClang; };

@ -1,7 +1,7 @@
#! @shell@ -e
path_backup="$PATH"
if [ -n "@coreutils@" ]; then
PATH="@coreutils@/bin"
if [ -n "@coreutils_bin@" ]; then
PATH="@coreutils_bin@/bin"
fi
if [ -n "$NIX_GNAT_WRAPPER_START_HOOK" ]; then

@ -1,7 +1,7 @@
#! @shell@ -e
path_backup="$PATH"
if [ -n "@coreutils@" ]; then
PATH="@coreutils@/bin"
if [ -n "@coreutils_bin@" ]; then
PATH="@coreutils_bin@/bin"
fi
if [ -n "$NIX_LD_WRAPPER_START_HOOK" ]; then

Loading…
Cancel
Save