it's also compiler-rt.lib on windows-gnu

This commit is contained in:
Jorge Aparicio 2016-09-04 16:24:26 -05:00 committed by Alex Crichton
parent e5d0bb12ec
commit 521ffe9dbe

View File

@ -23,7 +23,7 @@ use filetime::FileTime;
/// Returns the `name` as the filename of a static library for `target`.
pub fn staticlib(name: &str, target: &str) -> String {
if target.contains("windows-msvc") {
if target.contains("windows") {
format!("{}.lib", name)
} else {
format!("lib{}.a", name)