Add code comment about the --backend option usage

This commit is contained in:
Guillaume Gomez 2024-03-10 22:10:05 +01:00
parent fc2d1edad7
commit ba52317518

View File

@ -398,6 +398,8 @@ pub fn setup(
.display() .display()
.to_string(); .to_string();
if let Some(backend) = &self.backend { if let Some(backend) = &self.backend {
// This option is only used in the rust compiler testsuite. The sysroot is handled
// by its build system directly so no need to set it ourselves.
rustflags.push(format!("-Zcodegen-backend={}", backend)); rustflags.push(format!("-Zcodegen-backend={}", backend));
} else { } else {
rustflags.extend_from_slice(&[ rustflags.extend_from_slice(&[