Browse Source

Merge remote-tracking branch 'upstream/master'

cmd
James Higgs 8 years ago
parent
commit
8d0695d502
  1. 4
      src/lib.rs
  2. 3
      tests/test.rs

4
src/lib.rs

@ -15,6 +15,10 @@
//! This crate will automatically detect situations such as cross compilation or
//! other environment variables set by Cargo and will build code appropriately.
//!
//! The crate is not limited to C code, it can accept any source code that can
//! be passed to a C or C++ compiler. As such, assembly files with extensions
//! `.s` (gcc/clang) and `.asm` (MSVC) can also be compiled.
//!
//! [`Config`]: struct.Config.html
//!
//! # Examples

3
tests/test.rs

@ -185,6 +185,9 @@ fn gnu_shared() {
#[test]
fn gnu_flag_if_supported() {
if cfg!(windows) {
return
}
let test = Test::gnu();
test.gcc()
.file("foo.c")

Loading…
Cancel
Save