diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-06-08 21:22:23 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-01-25 18:55:27 +0000 |
| commit | 28af00c611164bfbb242b2184bd3168ac1e57d2b (patch) | |
| tree | 345e3e2893ccbdf60d40e2e48587de41eaa4e5ec /config.example.toml | |
| parent | 5bd5d214effd494f4bafb29b3a7a2f6c2070ca5c (diff) | |
| download | rust-28af00c611164bfbb242b2184bd3168ac1e57d2b.tar.gz rust-28af00c611164bfbb242b2184bd3168ac1e57d2b.zip | |
Support configuring the set of codegen backends to build per host triple
This allows building the compiler itself with one backend while using another backend at runtime. For example this allows compiling rustc to wasm using LLVM, while using Cranelift at runtime to produce actual code. Cranelift can't compile to wasm, but is perfectly capable of running on wasm. LLVM can compile to wasm, but can't run on wasm. [^1] [^1]: The prototype of this still requires a couple of other patches.
Diffstat (limited to 'config.example.toml')
| -rw-r--r-- | config.example.toml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config.example.toml b/config.example.toml index a5ef4022d39..098811195d7 100644 --- a/config.example.toml +++ b/config.example.toml @@ -829,6 +829,11 @@ # target triples containing `-none`, `nvptx`, `switch`, or `-uefi`. #no-std = <platform-specific> (bool) +# This is an array of the codegen backends that will be compiled a rustc +# compiled for this target, overriding the global rust.codegen-backends option. +# See that option for more info. +#codegen-backends = rust.codegen-backends (array) + # ============================================================================= # Distribution options # |
