diff options
Diffstat (limited to 'src/compiletest/util.rs')
| -rw-r--r-- | src/compiletest/util.rs | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/compiletest/util.rs b/src/compiletest/util.rs index ae4a25b8008..52081648978 100644 --- a/src/compiletest/util.rs +++ b/src/compiletest/util.rs @@ -10,6 +10,7 @@ use common::config; +#[cfg(target_os = "win32")] use std::os::getenv; /// Conversion table from triple OS name to Rust SYSNAME @@ -31,6 +32,7 @@ pub fn get_os(triple: &str) -> &'static str { fail!("Cannot determine OS from triple"); } +#[cfg(target_os = "win32")] pub fn make_new_path(path: &str) -> ~str { // Windows just uses PATH as the library search path, so we have to @@ -43,21 +45,9 @@ pub fn make_new_path(path: &str) -> ~str { } } -#[cfg(target_os = "linux")] -#[cfg(target_os = "freebsd")] -pub fn lib_path_env_var() -> ~str { ~"LD_LIBRARY_PATH" } - -#[cfg(target_os = "macos")] -pub fn lib_path_env_var() -> ~str { ~"DYLD_LIBRARY_PATH" } - #[cfg(target_os = "win32")] pub fn lib_path_env_var() -> ~str { ~"PATH" } -#[cfg(target_os = "linux")] -#[cfg(target_os = "macos")] -#[cfg(target_os = "freebsd")] -pub fn path_div() -> ~str { ~":" } - #[cfg(target_os = "win32")] pub fn path_div() -> ~str { ~";" } |
