shake-language-c 0.8.2 → 0.8.3
raw patch · 3 files changed
+13/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
CHANGELOG.md view
@@ -1,5 +1,13 @@ # Changelog for shake-language-c +## v0.8.3++* Allow to set linker command via `LD` environment variable++## v0.8.2++* Fix compiler and linker commands for Clang toolchain on Linux+ ## v0.8.1 * Use `-I` compiler flag for the `userIncludes` of `BuildFlags` and `-isystem` for `systemIncludes`; semantics should be as before for `gcc` and `clang` but `-isystem` suppresses warnings in system headers@@ -55,4 +63,3 @@ ## v0.5.0 First released version.-
shake-language-c.cabal view
@@ -13,7 +13,7 @@ -- limitations under the License. Name: shake-language-c-Version: 0.8.2+Version: 0.8.3 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/ToolChain.hs view
@@ -207,12 +207,16 @@ -- -- [@CC@] Path to @C@ compiler. --+-- [@LD@] Path to linker.+-- -- [@SHAKE_TOOLCHAIN_VARIANT@] One of the values of 'ToolChainVariant' (case insensitive). If this variable is not present, an attempt is made to determine the toolchain variant from the @C@ compiler command. applyEnv :: ToolChain -> Action ToolChain applyEnv toolChain = do cc <- getEnv "CC"+ ld <- getEnv "LD" vendor <- getEnv "SHAKE_TOOLCHAIN_VARIANT" return $ maybe id (set compilerCommand) cc+ $ maybe id (set linkerCommand) ld . maybe id (set variant) ((vendor >>= parseVendor) <|> (cc >>= vendorFromCommand)) $ toolChain where