shake-language-c 0.8.3 → 0.8.4
raw patch · 3 files changed
+5/−4 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
README.md view
@@ -1,6 +1,7 @@ # shake-language-c -[](https://travis-ci.org/samplecount/shake-language-c)+[](https://hackage.haskell.org/package/shake-language-c)+[](https://travis-ci.org/samplecount/shake-language-c) **shake-language-c** is a cross-platform build system based on the [Shake](https://github.com/ndmitchell/shake) Haskell library. The focus is on cross-compilation of *C*, *C++* and *Objective C* source code to various target platforms. Currently supported target platforms are *iOS*, *Android NDK*, *Google Portable Native Client*, *MacOS X*, *Linux* and *Windows* (*MinGW*). Supported host platforms are *MacOS X*, *Linux* and *Windows*. @@ -29,7 +30,7 @@ lib <- staticLibrary toolChain ("build" </> toBuildPrefix target </> "libexample.a")- (return $ + (return $ append compilerFlags [(Just Cpp, ["-std=c++11"])] >>> append compilerFlags [(Nothing, ["-O3"])] >>> append userIncludes ["include"] )
shake-language-c.cabal view
@@ -13,7 +13,7 @@ -- limitations under the License. Name: shake-language-c-Version: 0.8.3+Version: 0.8.4 Synopsis: Utilities for cross-compiling with Shake Description: This library provides <http://hackage.haskell.org/package/shake Shake> utilities for cross-compiling @C@, @C++@ and @ObjC@ code for various target platforms. Currently supported target platforms are Android, iOS, Linux, MacOS X, Windows\/MinGW and Google Portable Native Client (PNaCl). Supported host platforms are MacOS X, Linux and Windows. Category: Development
src/Development/Shake/Language/C/Host/Linux.hs view
@@ -25,7 +25,7 @@ -- | Get host architecture. getHostArch :: IO Arch getHostArch = do- arch <- fmap (head.lines) $ readProcess "arch" [] ""+ arch <- fmap (head.lines) $ readProcess "uname" ["-m"] "" return $ case arch of "i386" -> X86 I386 "i686" -> X86 I686