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 androidenv: Implement cmdline-tools and patcher 2023-01-27 18:15:47 -05:00
beam.section.md doc: avoid 'simply' (#266434) 2023-11-09 21:48:05 +01:00
bower.section.md Merge pull request #237068 from pennae/manual-normalization 2023-06-13 07:35:06 +02:00
chicken.section.md chickenPackages: turn into scope 2023-08-21 17:00:00 +02:00
coq.section.md Fix a small typo in the manual 2023-04-14 17:11:13 +01:00
crystal.section.md doc: use sri hash syntax 2022-12-04 06:12:18 +00:00
cuda.section.md cudaPackages: split outputs 2023-08-31 03:31:55 +00:00
cuelang.section.md doc: assign ids to many headings 2023-03-27 22:39:11 +02:00
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 Merge pull request #237068 from pennae/manual-normalization 2023-06-13 07:35:06 +02:00
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 doc: fix typos 2022-12-17 18:21:48 -05:00
idris.section.md doc: use sri hash syntax 2022-12-04 06:12:18 +00:00
index.md doc: render nixpkgs manual with nrd 2023-07-01 20:59:29 +02:00
ios.section.md doc: correct typos and spelling (#237098) 2023-06-11 02:15:43 +02:00
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 ocamlPackages.buildDunePackage: deprecate useDune2 2023-05-06 08:11:25 +02:00
octave.section.md
perl.section.md doc: update shortenPerlShebang example to use nativeBuildInputs 2023-05-10 18:34:17 +02:00
php.section.md doc: avoid 'simply' (#266434) 2023-11-09 21:48:05 +01:00
pkg-config.section.md doc: assign ids to many headings 2023-03-27 22:39:11 +02:00
python.section.md Merge pull request #256816 from Artturin/pythondocpython3packages 2023-11-10 20:25:00 +02:00
qt.section.md doc: don't use docbook program listings/callouts 2023-06-10 18:17:05 +02:00
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