Skip to content

Commit

Permalink
Auto merge of #120348 - bjorn3:per_target_backend_selection, r=albert…
Browse files Browse the repository at this point in the history
…larsan68

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.
  • Loading branch information
bors committed Feb 16, 2024
2 parents 5f530e4 + f3d5406 commit 39206ff
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 39206ff

Please sign in to comment.