mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update gonk's build.rs.
This commit is contained in:
parent
0d3574b583
commit
d926b8342b
1 changed files with 4 additions and 7 deletions
|
@ -2,18 +2,15 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
use std::old_io::process::{Command, ProcessExit, StdioContainer};
|
use std::env;
|
||||||
use std::os;
|
use std::process::{Command, Stdio};
|
||||||
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let out_dir = os::getenv("OUT_DIR").unwrap();
|
let out_dir = env::var("OUT_DIR").unwrap();
|
||||||
let result = Command::new("make")
|
let result = Command::new("make")
|
||||||
.args(&["-f", "makefile.cargo"])
|
.args(&["-f", "makefile.cargo"])
|
||||||
.stdout(StdioContainer::InheritFd(1))
|
|
||||||
.stderr(StdioContainer::InheritFd(2))
|
|
||||||
.status()
|
.status()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
assert_eq!(result, ProcessExit::ExitStatus(0));
|
assert!(result.success());
|
||||||
println!("cargo:rustc-flags=-L native={}", out_dir);
|
println!("cargo:rustc-flags=-L native={}", out_dir);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue