Skip to content

Commit

Permalink
Fix set invocation time order
Browse files Browse the repository at this point in the history
  • Loading branch information
edwin0cheng committed Nov 20, 2019
1 parent b496622 commit 1b03370
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cargo/core/compiler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ fn rustc<'a, 'cfg>(
// Build plan should not touch the timestamp
None
} else {
let timestamp = paths::set_invocation_time(&fingerprint_dir)?;
exec.exec(
rustc,
package_id,
Expand All @@ -295,7 +296,7 @@ fn rustc<'a, 'cfg>(
)
.map_err(internal_if_simple_exit_code)
.chain_err(|| format!("could not compile `{}`.", name))?;
Some(paths::set_invocation_time(&fingerprint_dir)?)
Some(timestamp)
};

if do_rename && real_name != crate_name {
Expand Down

0 comments on commit 1b03370

Please sign in to comment.