Skip to content

Commit 0628884

Browse files
Update RUSTFLAGS warning to suggest CARGO_BUILD_RUSTFLAGS (#2252)
Modify the warning message when RUSTFLAGS is set to recommend using CARGO_BUILD_RUSTFLAGS instead, which the CLI can merge with remapping.
1 parent 34ca2fa commit 0628884

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • cmd/soroban-cli/src/commands/contract

cmd/soroban-cli/src/commands/contract/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ fn make_rustflags_to_remap_absolute_paths(print: &Print) -> Result<Option<String
507507
}
508508

509509
if env::var("RUSTFLAGS").is_ok() {
510-
print.warnln("`RUSTFLAGS` set. Dependency paths will not be remapped; builds may not be reproducible.");
510+
print.warnln("`RUSTFLAGS` set. Dependency paths will not be remapped; builds may not be reproducible. Use CARGO_BUILD_RUSTFLAGS instead, which the CLI will merge with remapping.");
511511
return Ok(None);
512512
}
513513

0 commit comments

Comments
 (0)