about summary refs log tree commit diff
path: root/config.toml.example
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2022-02-27 10:59:10 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2022-02-27 11:28:05 +0100
commit7ad4297a4960c657932885173bef77fde0f26ccd (patch)
treeb54c17185b0191108d3f7b011e579f03787e8d83 /config.toml.example
parent3d127e2040b57157936f5f24e114a8b4c9a505ef (diff)
downloadrust-7ad4297a4960c657932885173bef77fde0f26ccd.tar.gz
rust-7ad4297a4960c657932885173bef77fde0f26ccd.zip
Use the first codegen backend in the config.toml as default
It is currently hard coded to llvm if enabled and cranelift otherwise.
This made some sense when cranelift was the only alternative codegen
backend. Since the introduction of the gcc backend this doesn't make
much sense anymore. Before this PR bootstrapping rustc using a backend
other than llvm or cranelift required changing the source of
rustc_interface. With this PR it becomes a matter of putting the right
backend as first enabled backend in config.toml.
Diffstat (limited to 'config.toml.example')
-rw-r--r--config.toml.example4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.toml.example b/config.toml.example
index ad48cc881f3..466a3a29c4c 100644
--- a/config.toml.example
+++ b/config.toml.example
@@ -551,7 +551,9 @@ changelog-seen = 2
 
 # This is an array of the codegen backends that will be compiled for the rustc
 # that's being compiled. The default is to only build the LLVM codegen backend,
-# and currently the only standard options supported are `"llvm"` and `"cranelift"`.
+# and currently the only standard options supported are `"llvm"`, `"cranelift"`
+# and `"gcc"`. The first backend in this list will be used as default by rustc
+# when no explicit backend is specified.
 #codegen-backends = ["llvm"]
 
 # Indicates whether LLD will be compiled and made available in the sysroot for