Skip to content

Commit

Permalink
Merge pull request #121323 from sternenseemann/pkgs-llvm
Browse files Browse the repository at this point in the history
pkgsLLVM: cross compiled package set using llvm compilers
  • Loading branch information
Ericson2314 committed May 14, 2021
2 parents 49d2653 + a13b1a7 commit f030f85
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkgs/top-level/stage.nix
Expand Up @@ -158,6 +158,20 @@ let
nixpkgsFun { inherit crossSystem; })
lib.systems.examples;

pkgsLLVM = nixpkgsFun {
overlays = [
(self': super': {
pkgsLLVM = super';
})
] ++ overlays;
# Bootstrap a cross stdenv using the LLVM toolchain.
# This is currently not possible when compiling natively,
# so we don't need to check hostPlatform != buildPlatform.
crossSystem = stdenv.hostPlatform // {
useLLVM = true;
};
};

# All packages built with the Musl libc. This will override the
# default GNU libc on Linux systems. Non-Linux systems are not
# supported.
Expand Down

0 comments on commit f030f85

Please sign in to comment.