wrapCCMulti: split from gcc_multi
This commit is contained in:
parent
71e7f0cad4
commit
391c3e505e
@ -4044,18 +4044,20 @@ in
|
||||
|
||||
gcc = gcc5;
|
||||
|
||||
gcc_multi =
|
||||
wrapCCMulti = cc:
|
||||
if system == "x86_64-linux" then lowPrio (
|
||||
let
|
||||
extraBuildCommands = ''
|
||||
echo "dontMoveLib64=1" >> $out/nix-support/setup-hook
|
||||
'';
|
||||
in wrapCCWith (callPackage ../build-support/cc-wrapper) glibc_multi extraBuildCommands (gcc.cc.override {
|
||||
stdenv = overrideCC stdenv (wrapCCWith (callPackage ../build-support/cc-wrapper) glibc_multi "" gcc.cc);
|
||||
in wrapCCWith (callPackage ../build-support/cc-wrapper) glibc_multi extraBuildCommands (cc.cc.override {
|
||||
stdenv = overrideCC stdenv (wrapCCWith (callPackage ../build-support/cc-wrapper) glibc_multi "" cc.cc);
|
||||
profiledCompiler = false;
|
||||
enableMultilib = true;
|
||||
}))
|
||||
else throw "Multilib gcc not supported on ‘${system}’";
|
||||
else throw "Multilib ${cc.name} not supported on ‘${system}’";
|
||||
|
||||
gcc_multi = wrapCCMulti gcc;
|
||||
|
||||
gcc_debug = lowPrio (wrapCC (gcc.cc.override {
|
||||
stripped = false;
|
||||
|
Loading…
Reference in New Issue
Block a user