mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 20:39:04 +02:00
commit
586616fd4b
|
@ -56,7 +56,7 @@ with builtins;
|
||||||
|
|
||||||
let majorVersion = "12";
|
let majorVersion = "12";
|
||||||
version = "${majorVersion}.2.0";
|
version = "${majorVersion}.2.0";
|
||||||
disableBootstrap = !stdenv.hostPlatform.isDarwin;
|
disableBootstrap = !stdenv.hostPlatform.isDarwin && !profiledCompiler;
|
||||||
|
|
||||||
inherit (stdenv) buildPlatform hostPlatform targetPlatform;
|
inherit (stdenv) buildPlatform hostPlatform targetPlatform;
|
||||||
|
|
||||||
|
@ -288,6 +288,8 @@ lib.pipe (stdenv.mkDerivation ({
|
||||||
targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null;
|
targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null;
|
||||||
|
|
||||||
buildFlags =
|
buildFlags =
|
||||||
|
# we do not yet have Nix-driven profiling
|
||||||
|
assert profiledCompiler -> !disableBootstrap;
|
||||||
let target =
|
let target =
|
||||||
lib.optionalString (profiledCompiler) "profiled" +
|
lib.optionalString (profiledCompiler) "profiled" +
|
||||||
lib.optionalString (targetPlatform == hostPlatform && hostPlatform == buildPlatform && !disableBootstrap) "bootstrap";
|
lib.optionalString (targetPlatform == hostPlatform && hostPlatform == buildPlatform && !disableBootstrap) "bootstrap";
|
||||||
|
|
Loading…
Reference in a new issue