Commits on Source (6)
-
The `export a="$(cmd)` syntax will mask the return value of $(cmd), which will not interrupt the script in case the xcrun command fails.
48ce6937 -
$HOME will be required to find default location like the default $CARGO_HOME at $HOME/.cargo, but the script was ignoring the whole environment and removing it.
038c578f -
Rustc and its behaviour is checked, but the buildsystem is not actually using rustc, and instead let cargo use the correct variant of rustc for the project.
96867630 -
CARGO_HOME defaults to $HOME/.cargo/, so the proper approach is to define it when undefined, instead of only checking it when defined. Note that it should be in %USERPROFILE%\.cargo\bin on Windows, which is not handled by this patch.
aaa0b0f7 -
The parameter is forwarded to Cargo to handle re-compiling the standard library. This is required when targetting tier 3 targets like aarch64-apple-tvos, where the standard library is not shipped with the compiler binaries. Initial design used --with-cargo-build-std which only triggered rebuild of the std in cargo, but this new design for the option allows more specification about what needs to be built, can be extended to support --extern crate later when the std makes it easy to do so, and I felt it was clearer to read the option, though finding it is a bit less easy. Example: --with-rust-std=build-std=std,panic_abort
12c9c09a -
The compiler supports the triplet by default.
a1dead92
Showing
- configure.ac 16 additions, 23 deletionsconfigure.ac
- contrib/src/get-rust-target.sh 11 additions, 1 deletioncontrib/src/get-rust-target.sh
- extras/package/apple/xcode.sh 2 additions, 2 deletionsextras/package/apple/xcode.sh
- extras/package/macosx/env.build.sh 1 addition, 1 deletionextras/package/macosx/env.build.sh
- modules/Makefile.am 1 addition, 1 deletionmodules/Makefile.am