-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: re-enable release builds for some mips-* targets
- mips-* targets are moved to Tier-3 rust-lang/compiler-team#648 - cargo nightly provides -Zbuild-std to build libstd while compiling - cross supports build-std
- Loading branch information
Showing
7 changed files
with
86 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,30 @@ | ||
[build] | ||
dockerfile = "./docker/linux-cross/Dockerfile" | ||
pre-build = [ | ||
"curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable", | ||
". $HOME/.cargo/env", | ||
"cargo install --force --locked bindgen-cli && mv $HOME/.cargo/bin/bindgen /usr/bin", | ||
"rm -rf $HOME/.cargo" | ||
] | ||
|
||
# dockerfile = "./docker/linux-cross/Dockerfile" | ||
# pre-build = [ | ||
# "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable", | ||
# ". $HOME/.cargo/env", | ||
# "cargo install --force --locked bindgen-cli && mv $HOME/.cargo/bin/bindgen /usr/bin", | ||
# "rm -rf $HOME/.cargo" | ||
# ] | ||
|
||
[build.env] | ||
passthrough = ["RUSTFLAGS"] | ||
|
||
# MIPS targets are dropped to Tier 3 | ||
# https://github.com/rust-lang/compiler-team/issues/648 | ||
[target.mips-unknown-linux-gnu] | ||
build-std = ["std", "panic_abort", "proc_macro"] | ||
[target.mips-unknown-linux-musl] | ||
build-std = ["std", "panic_abort", "proc_macro"] | ||
[target.mips64-unknown-linux-gnuabi64] | ||
build-std = ["std", "panic_abort", "proc_macro"] | ||
[target.mips64-unknown-linux-muslabi64] | ||
build-std = ["std", "panic_abort", "proc_macro"] | ||
[target.mips64el-unknown-linux-gnuabi64] | ||
build-std = ["std", "panic_abort", "proc_macro"] | ||
[target.mips64el-unknown-linux-muslabi64] | ||
build-std = ["std", "panic_abort", "proc_macro"] | ||
[target.mipsel-unknown-linux-gnu] | ||
build-std = ["std", "panic_abort", "proc_macro"] | ||
[target.mipsel-unknown-linux-musl] | ||
build-std = ["std", "panic_abort", "proc_macro"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
又有mips支持了真带劲,感谢大佬,不过这48行到53行跟下边重复啦