forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Compile rustc for wasm15 with llvm * Some fixes * Fix llvm-project submodule * Another fix * Fix linking libc++ on wasi * Disable linker optimizations for wasm This is really slow when producing a 156MB rustc.wasm output. * Better linking of libc++ * Faster LLVM compiles * Remove some unnecessary configs * Some preparation for once LLVM can compile for wasm32-wasip1 without threads * Rustfmt * Simplify LLVM build code a bit --------- Co-authored-by: bjorn3 <[email protected]>
- Loading branch information
Showing
14 changed files
with
283 additions
and
16 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
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 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 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Includes one of the default files in src/bootstrap/defaults | ||
profile = "compiler" | ||
change-id = 9999999 | ||
|
||
[rust] | ||
codegen-backends = ["llvm"] | ||
deny-warnings = false | ||
llvm-bitcode-linker = false | ||
debug = false | ||
debuginfo-level = 0 | ||
|
||
[llvm] | ||
cflags = "-march=native" | ||
cxxflags = "-march=native" | ||
static-libstdcpp = true | ||
ninja = false | ||
download-ci-llvm = false | ||
link-shared = false | ||
targets = "WebAssembly;X86" | ||
experimental-targets = "" | ||
|
||
[build] | ||
docs = false | ||
extended = false | ||
tools = [] | ||
host = ["wasm32-wasip1-threads"] | ||
target = ["x86_64-unknown-linux-gnu", "wasm32-wasip1-threads"] | ||
cargo-native-static = true | ||
|
||
[install] | ||
prefix = "dist" | ||
sysconfdir = "etc" | ||
|
||
[target.'wasm32-wasip1'] | ||
wasi-root = "wasi-sdk-24.0-x86_64-linux/share/wasi-sysroot" | ||
linker = "wasi-sdk-24.0-x86_64-linux/bin/clang" | ||
codegen-backends = ["llvm"] | ||
|
||
[target.'wasm32-wasip1-threads'] | ||
wasi-root = "wasi-sdk-24.0-x86_64-linux/share/wasi-sysroot" | ||
linker = "wasi-sdk-24.0-x86_64-linux/bin/clang" | ||
codegen-backends = ["llvm"] | ||
|
||
[target.'x86_64-unknown-linux-gnu'] | ||
cc = "gcc" |
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
Oops, something went wrong.