mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Don’t rely on $CARGO_TARGET_DIR
in build scripts
This commit is contained in:
parent
5c60023cb8
commit
d2c299a6c7
2 changed files with 5 additions and 7 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue