mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-09-17 11:17:28 +03:00
fmt
This commit is contained in:
parent
cc63794c91
commit
020efa4dfa
@ -310,12 +310,20 @@ fn build_command(
|
||||
|
||||
// set the rust --remap-path-prefix flags to strip absolute paths that could leak usernames or other PII from panic messages and debug symbols
|
||||
// see https://github.com/tauri-apps/tauri/issues/6538 for context
|
||||
let mut rustflags = std::env::var("RUSTFLAGS")
|
||||
.unwrap_or_default();
|
||||
let mut rustflags = std::env::var("RUSTFLAGS").unwrap_or_default();
|
||||
|
||||
rustflags.push_str(&format!(" --remap-path-prefix={}=", std::env::current_dir().unwrap().display()));
|
||||
rustflags.push_str(&format!(" --remap-path-prefix={}=cargo", env!("CARGO_HOME")));
|
||||
rustflags.push_str(&format!(" --remap-path-prefix={}=rustup", env!("RUSTUP_HOME")));
|
||||
rustflags.push_str(&format!(
|
||||
" --remap-path-prefix={}=",
|
||||
std::env::current_dir().unwrap().display()
|
||||
));
|
||||
rustflags.push_str(&format!(
|
||||
" --remap-path-prefix={}=cargo",
|
||||
env!("CARGO_HOME")
|
||||
));
|
||||
rustflags.push_str(&format!(
|
||||
" --remap-path-prefix={}=rustup",
|
||||
env!("RUSTUP_HOME")
|
||||
));
|
||||
|
||||
build_cmd.envs([("RUSTFLAGS", rustflags)]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user