aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/build.rs')
-rw-r--r--components/script/build.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/components/script/build.rs b/components/script/build.rs
new file mode 100644
index 00000000000..ca5ecaf9369
--- /dev/null
+++ b/components/script/build.rs
@@ -0,0 +1,18 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * 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/. */
+
+#![feature(io)]
+
+use std::old_io::process::{Command, ProcessExit, StdioContainer};
+
+
+fn main() {
+ let result = Command::new("make")
+ .args(&["-f", "makefile.cargo"])
+ .stdout(StdioContainer::InheritFd(1))
+ .stderr(StdioContainer::InheritFd(2))
+ .status()
+ .unwrap();
+ assert_eq!(result, ProcessExit::ExitStatus(0));
+}