Browse Source
Merge pull request #365 from TheBlueMatt/master
Fix build on previous versions of rust
wasi
Alex Crichton
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
2 deletions
-
.travis.yml
-
src/lib.rs
|
|
@ -3,7 +3,7 @@ sudo: false |
|
|
|
|
|
|
|
matrix: |
|
|
|
include: |
|
|
|
- rust: 1.30.0 |
|
|
|
- rust: 1.16.0 |
|
|
|
install: |
|
|
|
script: cargo build |
|
|
|
- rust: stable |
|
|
|
|
|
@ -55,6 +55,7 @@ |
|
|
|
|
|
|
|
#![doc(html_root_url = "https://docs.rs/cc/1.0")] |
|
|
|
#![cfg_attr(test, deny(warnings))] |
|
|
|
#![allow(deprecated)] |
|
|
|
#![deny(missing_docs)] |
|
|
|
|
|
|
|
#[cfg(feature = "parallel")] |
|
|
@ -1719,7 +1720,7 @@ impl Build { |
|
|
|
} else if self.get_host()? != target { |
|
|
|
// CROSS_COMPILE is of the form: "arm-linux-gnueabi-"
|
|
|
|
let cc_env = self.getenv("CROSS_COMPILE"); |
|
|
|
let cross_compile = cc_env.as_ref().map(|s| s.trim_end_matches('-')); |
|
|
|
let cross_compile = cc_env.as_ref().map(|s| s.trim_right_matches('-')); |
|
|
|
let prefix = cross_compile.or(match &target[..] { |
|
|
|
"aarch64-unknown-linux-gnu" => Some("aarch64-linux-gnu"), |
|
|
|
"aarch64-unknown-linux-musl" => Some("aarch64-linux-musl"), |
|
|
|