Don’t rely on $CARGO_TARGET_DIR in build scripts

This commit is contained in:
Simon Sapin 2019-09-30 11:20:41 +02:00
parent 5c60023cb8
commit d2c299a6c7
2 changed files with 5 additions and 7 deletions

View file

@ -17,13 +17,11 @@ fn main() {
let style_out_dir = PathBuf::from(env::var_os("DEP_SERVO_STYLE_CRATE_OUT_DIR").unwrap());
let out_dir = PathBuf::from(env::var_os("OUT_DIR").unwrap());
let target_dir = PathBuf::from(env::var_os("CARGO_TARGET_DIR").unwrap());
let status = Command::new(find_python())
.arg("dom/bindings/codegen/run.py")
.arg(style_out_dir.join("css-properties.json"))
.arg(&out_dir)
.arg(target_dir.join("doc").join("servo"))
.status()
.unwrap();
if !status.success() {