Skip to content

Commit 1096b1b

Browse files
Add more explanation on what cg_gcc_path is used for and improve help message for --cg_gcc-path
1 parent 2bcc735 commit 1096b1b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build_system/src/config.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ pub struct ConfigInfo {
120120
pub sysroot_path: String,
121121
pub gcc_path: String,
122122
config_file: Option<String>,
123+
// This is used in particular in rust compiler bootstrap because it doesn't run at the root
124+
// of the `cg_gcc` folder, making it complicated for us to get access to local files we need
125+
// like `libgccjit.version` or `config.toml`.
123126
cg_gcc_path: Option<PathBuf>,
124127
// Needed for the `info` command which doesn't want to actually download the lib if needed,
125128
// just to set the `gcc_path` field to display it.
@@ -526,7 +529,7 @@ impl ConfigInfo {
526529
--sysroot-panic-abort : Build the sysroot without unwinding support
527530
--config-file : Location of the config file to be used
528531
--cg_gcc-path : Location of the rustc_codegen_gcc root folder (used
529-
for accessing any file from the project)"
532+
when ran from another directory)"
530533
);
531534
}
532535
}

0 commit comments

Comments
 (0)