We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35f3b63 commit a2761acCopy full SHA for a2761ac
src/librustpkg/testsuite/pass/fancy-lib/pkg.rs
@@ -8,10 +8,16 @@
8
// option. This file may not be copied, modified, or distributed
9
// except according to those terms.
10
11
+use core::run;
12
+
13
pub fn main() {
14
let cwd = os::getcwd();
15
debug!("cwd = %s", cwd.to_str());
16
let file = io::file_writer(&Path(~"fancy-lib/build/generated.rs"),
17
[io::Create]).get();
18
file.write_str("pub fn wheeeee() { for [1, 2, 3].each() |_| { assert!(true); } }");
19
20
+ // now compile the crate itself
21
+ run::run_program("rustc", ~[~"fancy-lib/fancy-lib.rs", ~"--lib",
22
+ ~"-o", ~"fancy-lib/build/fancy_lib"]);
23
}
0 commit comments