Loading pkgs/development/compilers/gcc/10/default.nix +4 −4 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ assert langGo -> langCC; assert langAda -> gnatboot != null; # threadsCross is just for MinGW assert threadsCross != null -> stdenv.targetPlatform.isWindows; assert threadsCross != {} -> stdenv.targetPlatform.isWindows; # profiledCompiler builds inject non-determinism in one of the compilation stages. # If turned on, we can't provide reproducible builds anymore Loading Loading @@ -65,7 +65,7 @@ let majorVersion = "10"; ++ optional (targetPlatform.libc == "musl" && targetPlatform.isPower) ../ppc-musl.patch # Obtain latest patch with ../update-mcfgthread-patches.sh ++ optional (!crossStageStatic && targetPlatform.isMinGW) ./Added-mcf-thread-model-support-from-mcfgthread.patch ++ optional (!crossStageStatic && targetPlatform.isMinGW && threadsCross.model == "mcf") ./Added-mcf-thread-model-support-from-mcfgthread.patch ++ optional (buildPlatform.system == "aarch64-darwin" && targetPlatform != buildPlatform) (fetchpatch { url = "https://raw.githubusercontent.com/richard-vd/musl-cross-make/5e9e87f06fc3220e102c29d3413fbbffa456fcd6/patches/gcc-${version}/0008-darwin-aarch64-self-host-driver.patch"; Loading Loading @@ -179,7 +179,7 @@ stdenv.mkDerivation ({ ++ (optional (zlib != null) zlib) ; depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross; depsTargetTarget = optional (!crossStageStatic && threadsCross != {} && threadsCross.package != null) threadsCross.package; NIX_LDFLAGS = lib.optionalString hostPlatform.isSunOS "-lm -ldl"; Loading @@ -199,7 +199,7 @@ stdenv.mkDerivation ({ lib stdenv targetPackages crossStageStatic libcCross crossStageStatic libcCross threadsCross version gmp mpfr libmpc isl Loading pkgs/development/compilers/gcc/11/default.nix +4 −4 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ assert langGo -> langCC; assert langAda -> gnatboot != null; # threadsCross is just for MinGW assert threadsCross != null -> stdenv.targetPlatform.isWindows; assert threadsCross != {} -> stdenv.targetPlatform.isWindows; # profiledCompiler builds inject non-determinism in one of the compilation stages. # If turned on, we can't provide reproducible builds anymore Loading Loading @@ -76,7 +76,7 @@ let majorVersion = "11"; }) # Obtain latest patch with ../update-mcfgthread-patches.sh ++ optional (!crossStageStatic && targetPlatform.isMinGW) ./Added-mcf-thread-model-support-from-mcfgthread.patch; ++ optional (!crossStageStatic && targetPlatform.isMinGW && threadsCross.model == "mcf") ./Added-mcf-thread-model-support-from-mcfgthread.patch; /* Cross-gcc settings (build == host != target) */ crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt"; Loading Loading @@ -187,7 +187,7 @@ stdenv.mkDerivation ({ ++ (optional (zlib != null) zlib) ; depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross; depsTargetTarget = optional (!crossStageStatic && threadsCross != {} && threadsCross.package != null) threadsCross.package; NIX_LDFLAGS = lib.optionalString hostPlatform.isSunOS "-lm -ldl"; Loading @@ -207,7 +207,7 @@ stdenv.mkDerivation ({ lib stdenv targetPackages crossStageStatic libcCross crossStageStatic libcCross threadsCross version gmp mpfr libmpc isl Loading pkgs/development/compilers/gcc/12/default.nix +4 −4 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ assert langAda -> gnatboot != null; assert !langD; # threadsCross is just for MinGW assert threadsCross != null -> stdenv.targetPlatform.isWindows; assert threadsCross != {} -> stdenv.targetPlatform.isWindows; # profiledCompiler builds inject non-determinism in one of the compilation stages. # If turned on, we can't provide reproducible builds anymore Loading Loading @@ -71,7 +71,7 @@ let majorVersion = "12"; ++ optional langD ../libphobos.patch # Obtain latest patch with ../update-mcfgthread-patches.sh ++ optional (!crossStageStatic && targetPlatform.isMinGW) ./Added-mcf-thread-model-support-from-mcfgthread.patch; ++ optional (!crossStageStatic && targetPlatform.isMinGW && threadsCross.model == "mcf") ./Added-mcf-thread-model-support-from-mcfgthread.patch; /* Cross-gcc settings (build == host != target) */ crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt"; Loading Loading @@ -180,7 +180,7 @@ stdenv.mkDerivation ({ ++ (optional (zlib != null) zlib) ; depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross; depsTargetTarget = optional (!crossStageStatic && threadsCross != {}) threadsCross.package; NIX_LDFLAGS = lib.optionalString hostPlatform.isSunOS "-lm -ldl"; Loading @@ -201,7 +201,7 @@ stdenv.mkDerivation ({ lib stdenv targetPackages crossStageStatic libcCross crossStageStatic libcCross threadsCross version gmp mpfr libmpc isl Loading pkgs/development/compilers/gcc/4.8/default.nix +3 −3 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ assert stdenv.buildPlatform.isDarwin -> gnused != null; assert langGo -> langCC; # threadsCross is just for MinGW assert threadsCross != null -> stdenv.targetPlatform.isWindows; assert threadsCross != {} -> stdenv.targetPlatform.isWindows; # profiledCompiler builds inject non-determinism in one of the compilation stages. # If turned on, we can't provide reproducible builds anymore Loading Loading @@ -188,7 +188,7 @@ stdenv.mkDerivation ({ ++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs)) ; depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross; depsTargetTarget = optional (!crossStageStatic && threadsCross != {}) threadsCross; preConfigure = import ../common/pre-configure.nix { inherit lib; Loading @@ -204,7 +204,7 @@ stdenv.mkDerivation ({ lib stdenv targetPackages crossStageStatic libcCross crossStageStatic libcCross threadsCross version gmp mpfr libmpc isl Loading pkgs/development/compilers/gcc/4.9/default.nix +3 −3 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ assert stdenv.buildPlatform.isDarwin -> gnused != null; assert langGo -> langCC; # threadsCross is just for MinGW assert threadsCross != null -> stdenv.targetPlatform.isWindows; assert threadsCross != {} -> stdenv.targetPlatform.isWindows; # profiledCompiler builds inject non-determinism in one of the compilation stages. # If turned on, we can't provide reproducible builds anymore Loading Loading @@ -208,7 +208,7 @@ stdenv.mkDerivation ({ ++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs)) ; depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross; depsTargetTarget = optional (!crossStageStatic && threadsCross != {}) threadsCross; preConfigure = import ../common/pre-configure.nix { inherit lib; Loading @@ -224,7 +224,7 @@ stdenv.mkDerivation ({ lib stdenv targetPackages crossStageStatic libcCross crossStageStatic libcCross threadsCross version gmp mpfr libmpc isl Loading Loading
pkgs/development/compilers/gcc/10/default.nix +4 −4 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ assert langGo -> langCC; assert langAda -> gnatboot != null; # threadsCross is just for MinGW assert threadsCross != null -> stdenv.targetPlatform.isWindows; assert threadsCross != {} -> stdenv.targetPlatform.isWindows; # profiledCompiler builds inject non-determinism in one of the compilation stages. # If turned on, we can't provide reproducible builds anymore Loading Loading @@ -65,7 +65,7 @@ let majorVersion = "10"; ++ optional (targetPlatform.libc == "musl" && targetPlatform.isPower) ../ppc-musl.patch # Obtain latest patch with ../update-mcfgthread-patches.sh ++ optional (!crossStageStatic && targetPlatform.isMinGW) ./Added-mcf-thread-model-support-from-mcfgthread.patch ++ optional (!crossStageStatic && targetPlatform.isMinGW && threadsCross.model == "mcf") ./Added-mcf-thread-model-support-from-mcfgthread.patch ++ optional (buildPlatform.system == "aarch64-darwin" && targetPlatform != buildPlatform) (fetchpatch { url = "https://raw.githubusercontent.com/richard-vd/musl-cross-make/5e9e87f06fc3220e102c29d3413fbbffa456fcd6/patches/gcc-${version}/0008-darwin-aarch64-self-host-driver.patch"; Loading Loading @@ -179,7 +179,7 @@ stdenv.mkDerivation ({ ++ (optional (zlib != null) zlib) ; depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross; depsTargetTarget = optional (!crossStageStatic && threadsCross != {} && threadsCross.package != null) threadsCross.package; NIX_LDFLAGS = lib.optionalString hostPlatform.isSunOS "-lm -ldl"; Loading @@ -199,7 +199,7 @@ stdenv.mkDerivation ({ lib stdenv targetPackages crossStageStatic libcCross crossStageStatic libcCross threadsCross version gmp mpfr libmpc isl Loading
pkgs/development/compilers/gcc/11/default.nix +4 −4 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ assert langGo -> langCC; assert langAda -> gnatboot != null; # threadsCross is just for MinGW assert threadsCross != null -> stdenv.targetPlatform.isWindows; assert threadsCross != {} -> stdenv.targetPlatform.isWindows; # profiledCompiler builds inject non-determinism in one of the compilation stages. # If turned on, we can't provide reproducible builds anymore Loading Loading @@ -76,7 +76,7 @@ let majorVersion = "11"; }) # Obtain latest patch with ../update-mcfgthread-patches.sh ++ optional (!crossStageStatic && targetPlatform.isMinGW) ./Added-mcf-thread-model-support-from-mcfgthread.patch; ++ optional (!crossStageStatic && targetPlatform.isMinGW && threadsCross.model == "mcf") ./Added-mcf-thread-model-support-from-mcfgthread.patch; /* Cross-gcc settings (build == host != target) */ crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt"; Loading Loading @@ -187,7 +187,7 @@ stdenv.mkDerivation ({ ++ (optional (zlib != null) zlib) ; depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross; depsTargetTarget = optional (!crossStageStatic && threadsCross != {} && threadsCross.package != null) threadsCross.package; NIX_LDFLAGS = lib.optionalString hostPlatform.isSunOS "-lm -ldl"; Loading @@ -207,7 +207,7 @@ stdenv.mkDerivation ({ lib stdenv targetPackages crossStageStatic libcCross crossStageStatic libcCross threadsCross version gmp mpfr libmpc isl Loading
pkgs/development/compilers/gcc/12/default.nix +4 −4 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ assert langAda -> gnatboot != null; assert !langD; # threadsCross is just for MinGW assert threadsCross != null -> stdenv.targetPlatform.isWindows; assert threadsCross != {} -> stdenv.targetPlatform.isWindows; # profiledCompiler builds inject non-determinism in one of the compilation stages. # If turned on, we can't provide reproducible builds anymore Loading Loading @@ -71,7 +71,7 @@ let majorVersion = "12"; ++ optional langD ../libphobos.patch # Obtain latest patch with ../update-mcfgthread-patches.sh ++ optional (!crossStageStatic && targetPlatform.isMinGW) ./Added-mcf-thread-model-support-from-mcfgthread.patch; ++ optional (!crossStageStatic && targetPlatform.isMinGW && threadsCross.model == "mcf") ./Added-mcf-thread-model-support-from-mcfgthread.patch; /* Cross-gcc settings (build == host != target) */ crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt"; Loading Loading @@ -180,7 +180,7 @@ stdenv.mkDerivation ({ ++ (optional (zlib != null) zlib) ; depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross; depsTargetTarget = optional (!crossStageStatic && threadsCross != {}) threadsCross.package; NIX_LDFLAGS = lib.optionalString hostPlatform.isSunOS "-lm -ldl"; Loading @@ -201,7 +201,7 @@ stdenv.mkDerivation ({ lib stdenv targetPackages crossStageStatic libcCross crossStageStatic libcCross threadsCross version gmp mpfr libmpc isl Loading
pkgs/development/compilers/gcc/4.8/default.nix +3 −3 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ assert stdenv.buildPlatform.isDarwin -> gnused != null; assert langGo -> langCC; # threadsCross is just for MinGW assert threadsCross != null -> stdenv.targetPlatform.isWindows; assert threadsCross != {} -> stdenv.targetPlatform.isWindows; # profiledCompiler builds inject non-determinism in one of the compilation stages. # If turned on, we can't provide reproducible builds anymore Loading Loading @@ -188,7 +188,7 @@ stdenv.mkDerivation ({ ++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs)) ; depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross; depsTargetTarget = optional (!crossStageStatic && threadsCross != {}) threadsCross; preConfigure = import ../common/pre-configure.nix { inherit lib; Loading @@ -204,7 +204,7 @@ stdenv.mkDerivation ({ lib stdenv targetPackages crossStageStatic libcCross crossStageStatic libcCross threadsCross version gmp mpfr libmpc isl Loading
pkgs/development/compilers/gcc/4.9/default.nix +3 −3 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ assert stdenv.buildPlatform.isDarwin -> gnused != null; assert langGo -> langCC; # threadsCross is just for MinGW assert threadsCross != null -> stdenv.targetPlatform.isWindows; assert threadsCross != {} -> stdenv.targetPlatform.isWindows; # profiledCompiler builds inject non-determinism in one of the compilation stages. # If turned on, we can't provide reproducible builds anymore Loading Loading @@ -208,7 +208,7 @@ stdenv.mkDerivation ({ ++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs)) ; depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross; depsTargetTarget = optional (!crossStageStatic && threadsCross != {}) threadsCross; preConfigure = import ../common/pre-configure.nix { inherit lib; Loading @@ -224,7 +224,7 @@ stdenv.mkDerivation ({ lib stdenv targetPackages crossStageStatic libcCross crossStageStatic libcCross threadsCross version gmp mpfr libmpc isl Loading