Merge pull request #173755 from fgaz/gdc/match-gcc
gdc: match gcc version
This commit is contained in:
commit
ef8a2dac90
@ -3,6 +3,7 @@
|
||||
, langAda ? false
|
||||
, langObjC ? stdenv.targetPlatform.isDarwin
|
||||
, langObjCpp ? stdenv.targetPlatform.isDarwin
|
||||
, langD ? false
|
||||
, langGo ? false
|
||||
, reproducibleBuild ? true
|
||||
, profiledCompiler ? false
|
||||
@ -71,6 +72,7 @@ let majorVersion = "11";
|
||||
sha256 = ""; # TODO: uncomment and check hash when available.
|
||||
}) */
|
||||
++ optional langAda ../gnat-cflags-11.patch
|
||||
++ optional langD ../libphobos.patch
|
||||
++ optional langFortran ../gfortran-driving.patch
|
||||
++ optional (targetPlatform.libc == "musl" && targetPlatform.isPower) ../ppc-musl.patch
|
||||
|
||||
@ -220,6 +222,7 @@ stdenv.mkDerivation ({
|
||||
enableShared
|
||||
|
||||
langC
|
||||
langD
|
||||
langCC
|
||||
langFortran
|
||||
langAda
|
||||
@ -260,14 +263,14 @@ stdenv.mkDerivation ({
|
||||
|
||||
inherit
|
||||
(import ../common/extra-target-flags.nix {
|
||||
inherit lib stdenv crossStageStatic libcCross threadsCross;
|
||||
inherit lib stdenv crossStageStatic langD libcCross threadsCross;
|
||||
})
|
||||
EXTRA_FLAGS_FOR_TARGET
|
||||
EXTRA_LDFLAGS_FOR_TARGET
|
||||
;
|
||||
|
||||
passthru = {
|
||||
inherit langC langCC langObjC langObjCpp langAda langFortran langGo version;
|
||||
inherit langC langCC langObjC langObjCpp langAda langFortran langGo langD version;
|
||||
isGNU = true;
|
||||
};
|
||||
|
||||
|
@ -12988,8 +12988,9 @@ with pkgs;
|
||||
gcc-arm-embedded-10 = callPackage ../development/compilers/gcc-arm-embedded/10 {};
|
||||
gcc-arm-embedded = gcc-arm-embedded-10;
|
||||
|
||||
gdc = gdc9;
|
||||
gdc9 = wrapCC (gcc9.cc.override {
|
||||
# Has to match the default gcc so that there are no linking errors when
|
||||
# using C/C++ libraries in D packages
|
||||
gdc = wrapCC (gcc.cc.override {
|
||||
name = "gdc";
|
||||
langCC = false;
|
||||
langC = false;
|
||||
|
Loading…
Reference in New Issue
Block a user