diff options
author | doyougnu <jeffrey.young@iohk.io> | 2021-12-10 14:06:48 -0800 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-12-14 20:55:06 -0500 |
commit | bc663f87e7aac7853f2c27956d38dd6f30d24fe5 (patch) | |
tree | 160b3eb88e6e30dc2c9657a87d0b4a94822fb508 | |
parent | 800160229900aa97bb4ae1fa77c80521bf4379ce (diff) | |
download | haskell-bc663f87e7aac7853f2c27956d38dd6f30d24fe5.tar.gz |
CmmToLlvm.Config: strictify LlvmConfig field
-rw-r--r-- | compiler/GHC/CmmToLlvm/Config.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/GHC/CmmToLlvm/Config.hs b/compiler/GHC/CmmToLlvm/Config.hs index e92e97a957..c508fe7e75 100644 --- a/compiler/GHC/CmmToLlvm/Config.hs +++ b/compiler/GHC/CmmToLlvm/Config.hs @@ -25,6 +25,7 @@ data LCGConfig = LCGConfig , lcgLlvmVersion :: Maybe LlvmVersion -- ^ version of Llvm we're using , lcgDoWarn :: !Bool -- ^ True ==> warn unsupported Llvm version , lcgPlatformMisc :: !String -- ^ mirror DynFlags platformMisc_llvmTarget - , lcgLlvmConfig :: LlvmConfig -- ^ mirror DynFlags LlvmConfig NB. this field must be lazy - -- see Note [LLVM Configuration] in "GHC.SysTools" + , lcgLlvmConfig :: !LlvmConfig -- ^ mirror DynFlags LlvmConfig. + -- see Note [LLVM Configuration] in "GHC.SysTools". This can be strict since + -- GHC.Driver.Config.CmmToLlvm.initLCGConfig verifies the files are present. } |