summary refs log tree commit diff
path: root/pkgs/stdenv
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2019-12-30 18:09:45 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2019-12-30 18:09:45 -0500
commit6078f094c638faabc63cffe285dc91af4e04a741 (patch)
tree997c54dbdd327b435d2f3c77c38a62b74a78b25c /pkgs/stdenv
parentd8dd3014120af31d4567de8247900a1088ec6e7b (diff)
downloadnixpkgs-6078f094c638faabc63cffe285dc91af4e04a741.tar
nixpkgs-6078f094c638faabc63cffe285dc91af4e04a741.tar.gz
nixpkgs-6078f094c638faabc63cffe285dc91af4e04a741.tar.bz2
nixpkgs-6078f094c638faabc63cffe285dc91af4e04a741.tar.lz
nixpkgs-6078f094c638faabc63cffe285dc91af4e04a741.tar.xz
nixpkgs-6078f094c638faabc63cffe285dc91af4e04a741.tar.zst
nixpkgs-6078f094c638faabc63cffe285dc91af4e04a741.zip
pkgs/stdenv/booter.nix: Add comment explaining hasCC trickery
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r--pkgs/stdenv/booter.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/stdenv/booter.nix b/pkgs/stdenv/booter.nix
index 8a574652204..51d617354e8 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