mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
Merge pull request #105314 from lopsided98/rustc-musl-target
rustc: allow building for musl targets
This commit is contained in:
commit
5d75fe4ed0
@ -1,4 +1,5 @@
|
||||
{ stdenv, removeReferencesTo, pkgsBuildBuild, pkgsBuildHost, pkgsBuildTarget
|
||||
, targetPackages
|
||||
, fetchurl, file, python3
|
||||
, llvm_10, darwin, cmake, rust, rustPlatform
|
||||
, pkgconfig, openssl
|
||||
@ -92,6 +93,8 @@ in stdenv.mkDerivation rec {
|
||||
"${setTarget}.llvm-config=${llvmSharedForTarget}/bin/llvm-config"
|
||||
] ++ optionals (stdenv.isLinux && !stdenv.targetPlatform.isRedox) [
|
||||
"--enable-profiler" # build libprofiler_builtins
|
||||
] ++ optionals stdenv.targetPlatform.isMusl [
|
||||
"${setTarget}.musl-root=${targetPackages.stdenv.cc.libc}"
|
||||
];
|
||||
|
||||
# The bootstrap.py will generated a Makefile that then executes the build.
|
||||
|
Loading…
Reference in New Issue
Block a user