diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-11-18 12:19:27 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-12-05 15:09:28 +0100 |
commit | 989723ecf240a4f5a1b8dd3d61fe8a2d48cfda7a (patch) | |
tree | 039a4ee7edc07bce3d555c95d371436b6d37d38b /pkgs/development/compilers/rust | |
parent | 7386ca48e330e1b17c04633b1edfc184c6c66d1c (diff) | |
download | nixlib-989723ecf240a4f5a1b8dd3d61fe8a2d48cfda7a.tar nixlib-989723ecf240a4f5a1b8dd3d61fe8a2d48cfda7a.tar.gz nixlib-989723ecf240a4f5a1b8dd3d61fe8a2d48cfda7a.tar.bz2 nixlib-989723ecf240a4f5a1b8dd3d61fe8a2d48cfda7a.tar.lz nixlib-989723ecf240a4f5a1b8dd3d61fe8a2d48cfda7a.tar.xz nixlib-989723ecf240a4f5a1b8dd3d61fe8a2d48cfda7a.tar.zst nixlib-989723ecf240a4f5a1b8dd3d61fe8a2d48cfda7a.zip |
rustc-wasm32: merge into rustc
Since wasm32-unknown-unknown doesn't require any extra platform-specific dependencies (e.g. libc), we might as well just always include in with rustc. We could also include other targets fitting these criteria, but I wasn't able to find any others that actually build (not even wasm64-unknown-unknown). The old rustc-wasm32 package disabled documentation, but we don't actually need to do that — we just need to allow for some broken links in the wasm32-unknown-unknown documentation. Broken links in documentation are an upstream issue anyway. There's no need we need to fail our build for them.
Diffstat (limited to 'pkgs/development/compilers/rust')
-rw-r--r-- | pkgs/development/compilers/rust/rustc.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix index 7e365f52ef30..697770a86088 100644 --- a/pkgs/development/compilers/rust/rustc.nix +++ b/pkgs/development/compilers/rust/rustc.nix @@ -65,6 +65,8 @@ in stdenv.mkDerivation (finalAttrs: { # Increase codegen units to introduce parallelism within the compiler. RUSTFLAGS = "-Ccodegen-units=10"; + RUSTDOCFLAGS = "-A rustdoc::broken-intra-doc-links"; + # We need rust to build rust. If we don't provide it, configure will try to download it. # Reference: https://github.com/rust-lang/rust/blob/master/src/bootstrap/configure.py configureFlags = let @@ -100,6 +102,10 @@ in stdenv.mkDerivation (finalAttrs: { "--target=${concatStringsSep "," ([ stdenv.targetPlatform.rust.rustcTargetSpec + # Other targets that don't need any extra dependencies to build. + ] ++ optionals (!fastCross) [ + "wasm32-unknown-unknown" + # (build!=target): When cross-building a compiler we need to add # the build platform as well so rustc can compile build.rs # scripts. |