nixpkgs/doc/languages-frameworks
Alyssa Ross 8b51cdd3be rustc: add a compiler wrapper
We keep running into situations where we can't get the right
combination of rustc flags through build systems into rustc.
RUSTFLAGS is the only variable supported across build systems, but if
RUSTFLAGS is set, Cargo will ignore all other ways of specifying rustc
flags, including the target-specific ones, which we need to make
dynamic musl builds work.  (This is why pkgsCross.musl64.crosvm is
currently broken — it works if you unset separateDebugInfo, which
causes RUSTFLAGS not to be set.)

So, we need to do the same thing we do for C and C++ compilers, and
add a compiler wrapper so we can inject the flags we need, regardless
of the build system.

Currently the wrapper only supports a single mechanism for injecting
flags — the NIX_RUSTFLAGS environment variable.  As time goes on,
we'll probably want to add additional features, like target-specific
environment variables.
2023-11-30 09:23:06 +00:00
..
agda.section.md doc: avoid 'simply' (#266434) 2023-11-09 21:48:05 +01:00
android.section.md
beam.section.md doc: avoid 'simply' (#266434) 2023-11-09 21:48:05 +01:00
bower.section.md
chicken.section.md
coq.section.md
crystal.section.md
cuda.section.md
cuelang.section.md
dart.section.md doc: avoid 'simply' (#266434) 2023-11-09 21:48:05 +01:00
dhall.section.md fixup note on dhall-to-nixpkgs example 2023-11-02 17:38:03 +01:00
dotnet.section.md buildDotnetModule: make docs more clear on how to generate nugetDeps for the first time 2023-09-30 13:21:36 +02:00
emscripten.section.md emscripten docs: reformat examples to use admonition 2023-10-03 00:45:18 +02:00
gnome.section.md
go.section.md buildGoModule: deprecate vendorSha256 attribute 2023-11-14 09:37:22 +01:00
haskell.section.md doc: avoid 'simply' (#266434) 2023-11-09 21:48:05 +01:00
hy.section.md
idris.section.md
index.md
ios.section.md
java.section.md
javascript.section.md buildNpmPackage: allow passing npmDeps 2023-11-16 11:57:48 +00:00
lisp.section.md treewide: fix redirected and broken URLs 2023-11-11 10:49:01 +01:00
lua.section.md luarocks-packages-update: init (#262156) 2023-10-29 21:02:55 +01:00
maven.section.md doc: avoid 'simply' (#266434) 2023-11-09 21:48:05 +01:00
nim.section.md buildNimPackage: load lockfiles and overrides 2023-11-28 16:48:10 +02:00
ocaml.section.md
octave.section.md
perl.section.md
php.section.md doc: avoid 'simply' (#266434) 2023-11-09 21:48:05 +01:00
pkg-config.section.md
python.section.md Merge pull request #256816 from Artturin/pythondocpython3packages 2023-11-10 20:25:00 +02:00
qt.section.md
r.section.md
ruby.section.md doc: avoid 'simply' (#266434) 2023-11-09 21:48:05 +01:00
rust.section.md rustc: add a compiler wrapper 2023-11-30 09:23:06 +00:00
swift.section.md doc: avoid 'simply' (#266434) 2023-11-09 21:48:05 +01:00
texlive.section.md texlive: document simpler way to build custom packages 2023-11-20 00:56:40 +00:00
titanium.section.md
vim.section.md vimPluginsUpdater: init 2023-10-01 17:30:55 +02:00