Skip to content

Commit

Permalink
Rename out-dir -> artifact-dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirbaio committed Jan 10, 2025
1 parent 7035774 commit 1761c6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/bin/cargo-batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ fn main2(config: &mut GlobalContext) -> CliResult {
Some(&ws),
ProfileChecking::Custom,
)?;
if let Some(out_dir) = args.value_of_path("out-dir", config) {
if let Some(out_dir) = args.value_of_path("artifact-dir", config) {
compile_opts.build_config.export_dir = Some(out_dir);
} else if let Some(out_dir) = config.build_config()?.out_dir.as_ref() {
let out_dir = out_dir.resolve_path(config);
Expand All @@ -120,7 +120,7 @@ fn main2(config: &mut GlobalContext) -> CliResult {
//if compile_opts.build_config.export_dir.is_some() {
// config
// .cli_unstable()
// .fail_if_stable_opt("--out-dir", 6790)?;
// .fail_if_stable_opt("--artifact-dir", 6790)?;
//}

//println!("compile opts: {:#?}", compile_opts);
Expand Down Expand Up @@ -246,7 +246,7 @@ pub fn build_cli() -> Command {
.arg_target_triple("Build for the target triple")
.arg(
opt(
"out-dir",
"artifact-dir",
"Copy final artifacts to this directory (unstable)",
)
.value_name("PATH")
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/core/compiler/build_runner/compilation_files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ impl<'a, 'gctx: 'a> CompilationFiles<'a, 'gctx> {
.map(|hardlink| export_dir.join(hardlink.file_name().unwrap()))
})
};
if !self.do_uplift {
if !self.do_uplift && !unit.target.is_custom_build() {
hardlink = None
}
outputs.push(OutputFile {
Expand Down

0 comments on commit 1761c6b

Please sign in to comment.