From 69dbb53dcf3622c2fcbcfc4eb28fddd668a1ee56 Mon Sep 17 00:00:00 2001 From: Christopher Vittal Date: Fri, 21 Jul 2017 01:02:20 -0400 Subject: [PATCH 1/2] Add note that crate can compile assembly. --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index a2ae955..1e6b72e 100644 --- a/src/lib.rs +++ b/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 From 3ea767f12afed34980d87dad8d14fd2403da8c69 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 21 Jul 2017 08:11:52 -0700 Subject: [PATCH 2/2] Skip flag_if_supported test on Windows --- tests/test.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test.rs b/tests/test.rs index c013099..51f82f0 100644 --- a/tests/test.rs +++ b/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")