toolchain.nix
λpkgs, sources?, devLlvm?
| pkgs | |
| sources | default import./lib/sources.nix inherit pkgs; |
When true, the final compiler wrapper runs the clang binary from an out-of-Nix LLVM build directory named by $FILC_DEV_LLVM at run time. Runtime libraries (libpizlo, glibc, libc++) still come from the pinned Nix-built compiler, so only the compiler itself is swapped. | |
| devLlvm | default false |
let
pkgs.runCommand"filc0-dev" { }
if devLlvm then filc-pinned.overridefilc0 = filc0-dev; else filc-pinned
uses filc-pinned filc0-dev
import./toolchain/binutils.nix inherit pkgs;
import./toolchain/wrappers.nix
in