When x.py is invoked both by vscode and from the terminal directly, "bootstrap" is rebuilt each time. I think in the end this is due to that line:
|
println!("cargo:rerun-if-env-changed=PATH"); |
Indeed PATH is almost certainly different between the two environments. (vscode lives inside a sandbox, it just runs too many untrusted things to be granted access to my files and keys.)
Rebuilding on every PATH change seems excessive, is that truly needed?
Cc @jyn514 @Mark-Simulacrum
When
x.pyis invoked both by vscode and from the terminal directly, "bootstrap" is rebuilt each time. I think in the end this is due to that line:rust/src/bootstrap/build.rs
Line 7 in 10cc7a6
Indeed
PATHis almost certainly different between the two environments. (vscode lives inside a sandbox, it just runs too many untrusted things to be granted access to my files and keys.)Rebuilding on every
PATHchange seems excessive, is that truly needed?Cc @jyn514 @Mark-Simulacrum