File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
branches/try2/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 @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: 35f3b6324f1dc1f68539346d6bcda69a555910da
8
+ refs/heads/try2: a2761ac7b528eeeba375e0b0be0140fc1e5c50b3
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
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