Merge pull request #38932 from svanderburg/cygwin-fixes
Fix stdenv-native and fix rebasing on cygwin
This commit is contained in:
commit
204b73ffba
@ -8,7 +8,7 @@ _cygwinFixAutoImageBase() {
|
|||||||
if [ -f /etc/rebasenix.nextbase ]; then
|
if [ -f /etc/rebasenix.nextbase ]; then
|
||||||
NEXTBASE="$(</etc/rebasenix.nextbase)"
|
NEXTBASE="$(</etc/rebasenix.nextbase)"
|
||||||
fi
|
fi
|
||||||
NEXTBASE=${NEXTBASE:-0x200000000}
|
NEXTBASE=${NEXTBASE:-0x200000001}
|
||||||
|
|
||||||
REBASE=(`/bin/rebase -i $DLL`)
|
REBASE=(`/bin/rebase -i $DLL`)
|
||||||
BASE=${REBASE[2]}
|
BASE=${REBASE[2]}
|
||||||
|
@ -119,14 +119,23 @@ in
|
|||||||
};
|
};
|
||||||
stdenvNoCC = stdenv;
|
stdenvNoCC = stdenv;
|
||||||
|
|
||||||
cc = import ../../build-support/cc-wrapper {
|
cc = let
|
||||||
name = "cc-native";
|
|
||||||
nativeTools = true;
|
|
||||||
nativeLibc = true;
|
|
||||||
nativePrefix = { # switch
|
nativePrefix = { # switch
|
||||||
"i686-solaris" = "/usr/gnu";
|
"i686-solaris" = "/usr/gnu";
|
||||||
"x86_64-solaris" = "/opt/local/gcc47";
|
"x86_64-solaris" = "/opt/local/gcc47";
|
||||||
}.${system} or "/usr";
|
}.${system} or "/usr";
|
||||||
|
in
|
||||||
|
import ../../build-support/cc-wrapper {
|
||||||
|
name = "cc-native";
|
||||||
|
nativeTools = true;
|
||||||
|
nativeLibc = true;
|
||||||
|
inherit nativePrefix;
|
||||||
|
bintools = import ../../build-support/bintools-wrapper {
|
||||||
|
name = "bintools";
|
||||||
|
inherit stdenvNoCC nativePrefix;
|
||||||
|
nativeTools = true;
|
||||||
|
nativeLibc = true;
|
||||||
|
};
|
||||||
inherit stdenvNoCC;
|
inherit stdenvNoCC;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user