[commit: ghc] wip/nfs-locking: Add CcClangBackend and CcLlvmBackend settings. (27d45f1)

git at git.haskell.org git at git.haskell.org
Thu Oct 26 23:29:42 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/nfs-locking
Link       : http://ghc.haskell.org/trac/ghc/changeset/27d45f1b334d4af9e8ff18c159c2effa7b45d0c0/ghc

>---------------------------------------------------------------

commit 27d45f1b334d4af9e8ff18c159c2effa7b45d0c0
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Sat Dec 26 02:58:50 2015 +0000

    Add CcClangBackend and CcLlvmBackend settings.


>---------------------------------------------------------------

27d45f1b334d4af9e8ff18c159c2effa7b45d0c0
 cfg/system.config.in          | 2 ++
 src/Oracles/Config/Setting.hs | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/cfg/system.config.in b/cfg/system.config.in
index 6c21f6e..12ddeed 100644
--- a/cfg/system.config.in
+++ b/cfg/system.config.in
@@ -41,6 +41,8 @@ hscolour       = @HSCOLOUR@
 gcc-is-clang        = @GccIsClang@
 gcc-lt-46           = @GccLT46@
 ar-supports-at-file = @ArSupportsAtFile@
+cc-llvm-backend     = @CC_LLVM_BACKEND@
+cc-clang-backend    = @CC_CLANG_BACKEND@
 
 # Build options:
 #===============
diff --git a/src/Oracles/Config/Setting.hs b/src/Oracles/Config/Setting.hs
index 8f0b1df..81e2924 100644
--- a/src/Oracles/Config/Setting.hs
+++ b/src/Oracles/Config/Setting.hs
@@ -21,6 +21,8 @@ data Setting = BuildArch
              | BuildOs
              | BuildPlatform
              | BuildVendor
+             | CcClangBackend
+             | CcLlvmBackend
              | DynamicExtension
              | GhcMajorVersion
              | GhcMinorVersion
@@ -60,6 +62,8 @@ setting key = askConfig $ case key of
     BuildOs            -> "build-os"
     BuildPlatform      -> "build-platform"
     BuildVendor        -> "build-vendor"
+    CcClangBackend     -> "cc-clang-backend"
+    CcLlvmBackend      -> "cc-llvm-backend"
     DynamicExtension   -> "dynamic-extension"
     GhcMajorVersion    -> "ghc-major-version"
     GhcMinorVersion    -> "ghc-minor-version"



More information about the ghc-commits mailing list