File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
branches/dist-snap/src/librustpkg/testsuite/pass/fancy-lib Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
9
refs/heads/incoming: b50030718cf28f2a5a81857a26b57442734fe854
10
- refs/heads/dist-snap: 35f3b6324f1dc1f68539346d6bcda69a555910da
10
+ refs/heads/dist-snap: a2761ac7b528eeeba375e0b0be0140fc1e5c50b3
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
12
12
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
13
13
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
+ use core:: run;
12
+
11
13
pub fn main ( ) {
12
14
let cwd = os:: getcwd ( ) ;
13
15
debug ! ( "cwd = %s" , cwd. to_str( ) ) ;
14
16
let file = io:: file_writer ( & Path ( ~"fancy-lib/build/generated. rs ") ,
15
17
[ io:: Create ] ) . get ( ) ;
16
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"] ) ;
17
23
}
You can’t perform that action at this time.
0 commit comments