From 6078f094c638faabc63cffe285dc91af4e04a741 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Mon, 30 Dec 2019 18:09:45 -0500 Subject: [PATCH] pkgs/stdenv/booter.nix: Add comment explaining hasCC trickery --- pkgs/stdenv/booter.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/stdenv/booter.nix b/pkgs/stdenv/booter.nix index 8a5746522049..51d617354e86 100644 --- a/pkgs/stdenv/booter.nix +++ b/pkgs/stdenv/booter.nix @@ -126,7 +126,11 @@ stageFuns: let if buildPackages.stdenv.cc.isClang or false then buildPackages.clang else buildPackages.gcc - else buildPackages.stdenv.cc; + else + # This will blow up if anything uses it, but that's OK. The `if + # buildPackages.stdenv.cc.isClang then ... else ...` would blow up + # everything, so we make sure to avoid that. + buildPackages.stdenv.cc; }; in dfold folder postStage (_: {}) withAllowCustomOverrides