8b51cdd3be
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. |
||
---|---|---|
.. | ||
agda.section.md | ||
android.section.md | ||
beam.section.md | ||
bower.section.md | ||
chicken.section.md | ||
coq.section.md | ||
crystal.section.md | ||
cuda.section.md | ||
cuelang.section.md | ||
dart.section.md | ||
dhall.section.md | ||
dotnet.section.md | ||
emscripten.section.md | ||
gnome.section.md | ||
go.section.md | ||
haskell.section.md | ||
hy.section.md | ||
idris.section.md | ||
index.md | ||
ios.section.md | ||
java.section.md | ||
javascript.section.md | ||
lisp.section.md | ||
lua.section.md | ||
maven.section.md | ||
nim.section.md | ||
ocaml.section.md | ||
octave.section.md | ||
perl.section.md | ||
php.section.md | ||
pkg-config.section.md | ||
python.section.md | ||
qt.section.md | ||
r.section.md | ||
ruby.section.md | ||
rust.section.md | ||
swift.section.md | ||
texlive.section.md | ||
titanium.section.md | ||
vim.section.md |