Skip to content

Commit 8e7ceed

Browse files
committed
---
yaml --- r: 6715 b: refs/heads/master c: 7694689 h: refs/heads/master i: 6713: b96c5a0 6711: 4c6fafe v: v3
1 parent 9db8242 commit 8e7ceed

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: a87d80f6e28f28b091f11bd55dd4c4a51b165a91
2+
refs/heads/master: 7694689044352a5dca9a7622f11fb0f3d601154e

trunk/src/cargo/cargo.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,12 @@ fn install_one_crate(c: cargo, _path: str, cf: str, _p: pkg) {
154154
name = str::slice(name, 0u, ri as uint);
155155
}
156156
log #fmt["Installing: %s", name];
157-
let old = vec::map({|x| str::slice(x, 2u, str::byte_len(x))}, fs::list_dir("."));
158-
run::run_program("rustc", [name + ".rc"]);
159-
let new = vec::map({|x| str::slice(x, 2u, str::byte_len(x))}, fs::list_dir("."));
157+
let old = fs::list_dir(".");
158+
run::run_program("rustc", [cf]);
159+
let new = fs::list_dir(".");
160160
let created = vec::filter::<str>({ |n| !vec::member::<str>(n, old) }, new);
161161
for ct: str in created {
162-
if (os::exec_suffix() != "" && str::ends_with(ct, os::exec_suffix())) ||
163-
(os::exec_suffix() == "" && !str::starts_with(ct, "lib")) {
162+
if str::ends_with(ct, os::exec_suffix()) {
164163
log #fmt[" bin: %s", ct];
165164
// FIXME: need libstd fs::copy or something
166165
run::run_program("cp", [ct, c.bindir]);

trunk/src/comp/back/link.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,9 +588,16 @@ fn link_binary(sess: session::session,
588588
let long_libname =
589589
std::os::dylib_filename(#fmt("%s-%s-%s",
590590
lm.name, lm.extras_hash, lm.vers));
591+
log "link_meta.name: " + lm.name;
592+
log "long_libname: " + long_libname;
593+
log "out_filename: " + out_filename;
594+
log "dirname(out_filename): " + fs::dirname(out_filename);
595+
591596
fs::connect(fs::dirname(out_filename), long_libname)
592597
} else { out_filename };
593598

599+
log "output: " + output;
600+
594601
// The default library location, we need this to find the runtime.
595602
// The location of crates will be determined as needed.
596603
let stage: str = "-L" + sess.filesearch().get_target_lib_path();

trunk/src/comp/driver/rustc.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,10 @@ fn build_output_filenames(ifile: str, ofile: option::t<str>,
561561
obj_filename = base_filename + "." + suffix;
562562

563563
if sess.building_library() {
564-
saved_out_filename = std::os::dylib_filename(base_filename);
564+
let dirname = fs::dirname(base_filename);
565+
let basename = fs::basename(base_filename);
566+
let dylibname = std::os::dylib_filename(basename);
567+
saved_out_filename = fs::connect(dirname, dylibname);
565568
} else {
566569
saved_out_filename = base_filename;
567570
}

0 commit comments

Comments
 (0)