Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit c03ea7b

Browse files
committed
Pass cached job executable when executing rustc via job queue
1 parent 3bdfbc1 commit c03ea7b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/build/plan.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,8 @@ impl JobQueue {
293293
trace!("Executing: {:?}", job);
294294
let mut args: Vec<_> = job.get_args().iter().cloned()
295295
.map(|x| x.into_string().unwrap()).collect();
296-
// TODO: is it crucial to pass *actual* executed program (e.g. rustc
297-
// shim) or does the compiler API just care about the order and not
298-
// which exact binary was run (1st argument)?
299-
args.insert(0, "rustc".to_owned());
296+
297+
args.insert(0, job.get_program().clone().into_string().unwrap());
300298

301299
match super::rustc::rustc(&internals.vfs, &args, job.get_envs(),
302300
&build_dir, internals.config.clone(),

0 commit comments

Comments
 (0)