From 17004d706a4ba3eda2343bd3144ae2735dd79d75 Mon Sep 17 00:00:00 2001 From: Colin Finck Date: Tue, 8 Oct 2024 15:26:57 +0200 Subject: [PATCH 1/2] Pass through `--remap-path-prefix` argument. --- src/compiler/rust.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/rust.rs b/src/compiler/rust.rs index c72fdc51b..b05b08550 100644 --- a/src/compiler/rust.rs +++ b/src/compiler/rust.rs @@ -1023,7 +1023,7 @@ counted_array!(static ARGS: [ArgInfo; _] = [ take_arg!("--out-dir", PathBuf, CanBeSeparated('='), OutDir), take_arg!("--pretty", OsString, CanBeSeparated('='), NotCompilation), take_arg!("--print", OsString, CanBeSeparated('='), NotCompilation), - take_arg!("--remap-path-prefix", OsString, CanBeSeparated('='), TooHard), + take_arg!("--remap-path-prefix", OsString, CanBeSeparated('='), PassThrough), take_arg!("--sysroot", PathBuf, CanBeSeparated('='), TooHardPath), take_arg!("--target", ArgTarget, CanBeSeparated('='), Target), take_arg!("--unpretty", OsString, CanBeSeparated('='), NotCompilation), From 9aebab5a13f08812ef91eec0d0c5cd8a6da4280b Mon Sep 17 00:00:00 2001 From: Colin Finck Date: Tue, 8 Oct 2024 15:29:35 +0200 Subject: [PATCH 2/2] Nothing is TooHard anymore in the Rust world! --- src/compiler/rust.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/compiler/rust.rs b/src/compiler/rust.rs index b05b08550..ec35f85bf 100644 --- a/src/compiler/rust.rs +++ b/src/compiler/rust.rs @@ -978,7 +978,6 @@ impl IntoArg for ArgTarget { ArgData! { TooHardFlag, - TooHard(OsString), TooHardPath(PathBuf), NotCompilationFlag, NotCompilation(OsString), @@ -1064,7 +1063,7 @@ fn parse_arguments(arguments: &[OsString], cwd: &Path) -> CompilerArguments { + Some(TooHardFlag) | Some(TooHardPath(_)) => { cannot_cache!(arg.flag_str().expect("Can't be Argument::Raw/UnknownFlag",)) } Some(NotCompilationFlag) | Some(NotCompilation(_)) => {