diff options
Diffstat (limited to 'src/compiletest/util.rs')
| -rw-r--r-- | src/compiletest/util.rs | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/compiletest/util.rs b/src/compiletest/util.rs index 445e814a1eb..8947856e332 100644 --- a/src/compiletest/util.rs +++ b/src/compiletest/util.rs @@ -10,13 +10,15 @@ use common::Config; -#[cfg(target_os = "win32")] +#[cfg(target_os = "windows")] +#[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot use std::os::getenv; /// Conversion table from triple OS name to Rust SYSNAME static OS_TABLE: &'static [(&'static str, &'static str)] = &[ - ("mingw32", "win32"), - ("win32", "win32"), + ("mingw32", "windows"), + ("win32", "windows"), + ("windows", "windows"), ("darwin", "macos"), ("android", "android"), ("linux", "linux"), @@ -33,7 +35,8 @@ pub fn get_os(triple: &str) -> &'static str { fail!("Cannot determine OS from triple"); } -#[cfg(target_os = "win32")] +#[cfg(target_os = "windows")] +#[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot pub fn make_new_path(path: &str) -> String { // Windows just uses PATH as the library search path, so we have to @@ -46,10 +49,12 @@ pub fn make_new_path(path: &str) -> String { } } -#[cfg(target_os = "win32")] +#[cfg(target_os = "windows")] +#[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot pub fn lib_path_env_var() -> &'static str { "PATH" } -#[cfg(target_os = "win32")] +#[cfg(target_os = "windows")] +#[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot pub fn path_div() -> &'static str { ";" } pub fn logv(config: &Config, s: String) { |
