diff options
| author | Maksim Bondarenkov <maksapple2306@gmail.com> | 2025-07-21 15:47:37 +0300 |
|---|---|---|
| committer | Maksim Bondarenkov <maksapple2306@gmail.com> | 2025-07-21 15:47:37 +0300 |
| commit | c193f3039f561aad497fdaced3f320bd889bdb0d (patch) | |
| tree | b65c5a69ec15db978e5bf501f0bc16e5f05f612a | |
| parent | 67819923ac8ea353aaa775303f4c3aacbf41d010 (diff) | |
| download | rust-c193f3039f561aad497fdaced3f320bd889bdb0d.tar.gz rust-c193f3039f561aad497fdaced3f320bd889bdb0d.zip | |
opt-dist: make `artifact-dir` an absolute path for `opt-dist local`
...like for CI environments. the same logic applied as for `build_dir`. fixes the issue where some intermediate steps fail due to path being relative to an active directory
| -rw-r--r-- | src/tools/opt-dist/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/opt-dist/src/main.rs b/src/tools/opt-dist/src/main.rs index d0e6badede6..42170ff39d7 100644 --- a/src/tools/opt-dist/src/main.rs +++ b/src/tools/opt-dist/src/main.rs @@ -62,7 +62,7 @@ enum EnvironmentCmd { python: String, /// Directory where artifacts (like PGO profiles or rustc-perf) of this workflow - /// will be stored. + /// will be stored. Relative to `checkout_dir` #[arg(long, default_value = "opt-artifacts")] artifact_dir: Utf8PathBuf, @@ -150,7 +150,7 @@ fn create_environment(args: Args) -> anyhow::Result<(Environment, Vec<String>)> .python_binary(python) .checkout_dir(checkout_dir.clone()) .host_llvm_dir(llvm_dir) - .artifact_dir(artifact_dir) + .artifact_dir(checkout_dir.join(artifact_dir)) .build_dir(checkout_dir.join(build_dir)) .prebuilt_rustc_perf(rustc_perf_checkout_dir) .shared_llvm(llvm_shared) |
