mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
gcc7: Reduce diff to gcc6
This commit is contained in:
parent
825b953bf5
commit
d7a0695c43
2 changed files with 3 additions and 3 deletions
|
@ -430,7 +430,7 @@ stdenv.mkDerivation ({
|
||||||
CC_FOR_TARGET = "${targetPlatform.config}-gcc";
|
CC_FOR_TARGET = "${targetPlatform.config}-gcc";
|
||||||
NM_FOR_TARGET = "${targetPlatform.config}-nm";
|
NM_FOR_TARGET = "${targetPlatform.config}-nm";
|
||||||
CXX_FOR_TARGET = "${targetPlatform.config}-g++";
|
CXX_FOR_TARGET = "${targetPlatform.config}-g++";
|
||||||
# If we are making a cross compiler, cross != null
|
# If we are making a cross compiler, targetPlatform != hostPlatform
|
||||||
NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc;
|
NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc;
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
configureFlags =
|
configureFlags =
|
||||||
|
|
|
@ -426,7 +426,7 @@ stdenv.mkDerivation ({
|
||||||
NM_FOR_TARGET = "${targetPlatform.config}-nm";
|
NM_FOR_TARGET = "${targetPlatform.config}-nm";
|
||||||
CXX_FOR_TARGET = "${targetPlatform.config}-g++";
|
CXX_FOR_TARGET = "${targetPlatform.config}-g++";
|
||||||
# If we are making a cross compiler, targetPlatform != hostPlatform
|
# If we are making a cross compiler, targetPlatform != hostPlatform
|
||||||
NIX_CC_CROSS = if targetPlatform == hostPlatform then "${stdenv.ccCross}" else "";
|
NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc;
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
configureFlags =
|
configureFlags =
|
||||||
optional (!enableMultilib) "--disable-multilib" ++
|
optional (!enableMultilib) "--disable-multilib" ++
|
||||||
|
|
Loading…
Reference in a new issue