about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorPietro Albini <pietro.albini@ferrous-systems.com>2024-07-08 15:16:28 +0200
committerPietro Albini <pietro.albini@ferrous-systems.com>2024-07-08 15:16:28 +0200
commit198c809dd1b06d398c44f570c9635af640895ce9 (patch)
treef0ebcdf24fe7b0772f7f77f9f82b7b5b9eb52291 /compiler/rustc_codegen_gcc/example/std_example.rs
parentfcb6ff5171fd41c988a6c449f76ff34c2c2d5a43 (diff)
downloadrust-198c809dd1b06d398c44f570c9635af640895ce9.tar.gz
rust-198c809dd1b06d398c44f570c9635af640895ce9.zip
set the correct executable for initial_{rustc,cargo}
Due to the way the paths initial_rustc and initial_cargo were
constructed before this commit, they mixed \ and / for path separators
and they omitted the .exe suffix.

This worked fine up until now, as Windows is capable of handling the
mixed path separators and the Command::new API adds the ".exe" suffix if
missing from the executable.

This resulted in paths that didn't actually exist on disk though, due to
the missing .exe suffix. This commit fixes that by adding the .exe
suffix to initial_rustc and initial_cargo when --build is Windows.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions