Skip to content

Commit 1a7986a

Browse files
committed
---
yaml --- r: 273065 b: refs/heads/beta c: b53764c h: refs/heads/master i: 273063: 9e73f47
1 parent 23c8e48 commit 1a7986a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+448
-2450
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 083db64d9050ae6f92628aa869171ac4affb016f
26+
refs/heads/beta: b53764c73bd722ea22142bace6249d5950066253
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/compiletest/compiletest.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#![crate_type = "bin"]
1212

1313
#![feature(box_syntax)]
14-
#![feature(dynamic_lib)]
1514
#![feature(libc)]
1615
#![feature(rustc_private)]
1716
#![feature(str_char)]

branches/beta/src/compiletest/procsrv.rs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,31 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![allow(deprecated)]
12-
13-
use std::dynamic_lib::DynamicLibrary;
11+
use std::env;
12+
use std::ffi::OsString;
1413
use std::io::prelude::*;
1514
use std::path::PathBuf;
1615
use std::process::{ExitStatus, Command, Child, Output, Stdio};
1716

1817
fn add_target_env(cmd: &mut Command, lib_path: &str, aux_path: Option<&str>) {
1918
// Need to be sure to put both the lib_path and the aux path in the dylib
2019
// search path for the child.
21-
let mut path = DynamicLibrary::search_path();
20+
let var = if cfg!(windows) {
21+
"PATH"
22+
} else if cfg!(target_os = "macos") {
23+
"DYLD_LIBRARY_PATH"
24+
} else {
25+
"LD_LIBRARY_PATH"
26+
};
27+
let mut path = env::split_paths(&env::var_os(var).unwrap_or(OsString::new()))
28+
.collect::<Vec<_>>();
2229
if let Some(p) = aux_path {
2330
path.insert(0, PathBuf::from(p))
2431
}
2532
path.insert(0, PathBuf::from(lib_path));
2633

2734
// Add the new dylib search path var
28-
let var = DynamicLibrary::envvar();
29-
let newpath = DynamicLibrary::create_path(&path);
35+
let newpath = env::join_paths(&path).unwrap();
3036
cmd.env(var, newpath);
3137
}
3238

0 commit comments

Comments
 (0)