mas: placeholders the scrub accepts
This commit is contained in:
parent
634d5dd71d
commit
2e1c7cdc3c
2 changed files with 11 additions and 11 deletions
|
|
@ -125,7 +125,7 @@ export interface PathFreeInput { home: string; user: string; root: string; cargo
|
|||
* and the home folder; no debug info; symbols stripped. Pure. */
|
||||
export function pathFreeEnv(i: PathFreeInput): Record<string, string> {
|
||||
const maps: [string, string][] = [
|
||||
[i.root, '/src'], [i.cargoHome ?? `${i.home}/.cargo`, '/cargo'], [i.rustupHome ?? `${i.home}/.rustup`, '/rustup'], [i.home, '/home/build'],
|
||||
[i.root, '/src'], [i.cargoHome ?? `${i.home}/.cargo`, '/cargo'], [i.rustupHome ?? `${i.home}/.rustup`, '/rustup'], [i.home, '/build-home'],
|
||||
];
|
||||
const seen = new Set<string>();
|
||||
const flags = maps.filter(([from]) => from && !seen.has(from) && seen.add(from)).map(([from, to]) => `--remap-path-prefix=${from}=${to}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue