Skip to content

Commit e886299

Browse files
committed
---
yaml --- r: 57782 b: refs/heads/incoming c: f945e57 h: refs/heads/master v: v3
1 parent db384ac commit e886299

File tree

10 files changed

+12
-7
lines changed

10 files changed

+12
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: bf67eb2362b7d0f37012f2d6dac604c3bbacd2c6
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/incoming: 6a3e26aa4062019629e144196a7852ef039f8b0a
9+
refs/heads/incoming: f945e57bd050227bbf92f151303785991173f2fe
1010
refs/heads/dist-snap: 00dbbd01c2aee72982b3e0f9511ae1d4428c3ba9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/librustpkg/testsuite/pass/src/fancy-lib/src/fancy-lib.rs renamed to branches/incoming/src/librustpkg/testsuite/pass/src/fancy-lib/fancy-lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ extern mod std;
2121

2222
pub mod foo;
2323
pub mod bar;
24-
#[path = "build/generated.rs"] pub mod generated;
24+
#[path = "../../build/fancy_lib/generated.rs"] pub mod generated;

branches/incoming/src/librustpkg/testsuite/pass/src/fancy-lib/pkg.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,18 @@
1111
use core::run;
1212

1313
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"),
14+
use core::libc::consts::os::posix88::{S_IRUSR, S_IWUSR, S_IXUSR};
15+
16+
let out_path = Path(~"build/fancy_lib");
17+
if !os::path_exists(&out_path) {
18+
assert!(os::make_dir(&out_path, (S_IRUSR | S_IWUSR | S_IXUSR) as i32));
19+
}
20+
21+
let file = io::file_writer(&out_path.push("generated.rs"),
1722
[io::Create]).get();
1823
file.write_str("pub fn wheeeee() { for [1, 2, 3].each() |_| { assert!(true); } }");
1924

2025
// now compile the crate itself
21-
run::run_program("rustc", ~[~"fancy-lib/fancy-lib.rs", ~"--lib",
22-
~"-o", ~"fancy-lib/build/fancy_lib"]);
26+
run::run_program("rustc", ~[~"src/fancy-lib/fancy-lib.rs", ~"--lib",
27+
~"-o", out_path.push(~"fancy_lib").to_str()]);
2328
}

0 commit comments

Comments
 (0)