summaryrefslogtreecommitdiff
path: root/hadrian/src/Rules/Generate.hs
diff options
context:
space:
mode:
authorHécate <hecate+gitlab@glitchbra.in>2020-06-30 23:09:23 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-07-18 07:26:42 -0400
commit6ba6a881c58459008f02fb4816f8dec2800c2b73 (patch)
treef160876889f9cc322494ba540837953179825edd /hadrian/src/Rules/Generate.hs
parent750a1595ef31cdc335f3bab045b2f19a9c43ff93 (diff)
downloadhaskell-6ba6a881c58459008f02fb4816f8dec2800c2b73.tar.gz
Implement `fullCompilerVersion`
Follow-up of https://gitlab.haskell.org/ghc/ghc/-/issues/18403 This MR adds `fullCompilerVersion`, a function that shares the same backend as the `--numeric-version` GHC flag, exposing a full, three-digit version datatype.
Diffstat (limited to 'hadrian/src/Rules/Generate.hs')
-rw-r--r--hadrian/src/Rules/Generate.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/hadrian/src/Rules/Generate.hs b/hadrian/src/Rules/Generate.hs
index 2ac01b4f48..62a7bbebbc 100644
--- a/hadrian/src/Rules/Generate.hs
+++ b/hadrian/src/Rules/Generate.hs
@@ -407,7 +407,7 @@ generateGhcVersionH = do
, "#define __GLASGOW_HASKELL__ " ++ version
, "#endif"
, "#if !defined(__GLASGOW_HASKELL_FULL_VERSION__)"
- , "#define __GLASGOW_HASKELL_FULL_VERSION__ " ++ fullVersion
+ , "#define __GLASGOW_HASKELL_FULL_VERSION__ \"" ++ fullVersion ++ "\""
, "#endif"
, ""]
++