summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorHécate <hecate+gitlab@glitchbra.in>2020-07-01 23:35:39 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-07-03 17:34:36 -0400
commit7aa6ef110d8cc6626b1cf18d85a37cbac53e2795 (patch)
tree80a703c03e8fee5850954a89e84750f53c391e7f /includes
parent41d2649288a5debcb4c8003e54b7d3072ab951c5 (diff)
downloadhaskell-7aa6ef110d8cc6626b1cf18d85a37cbac53e2795.tar.gz
Add the __GHC_FULL_VERSION__ CPP macro to expose the full GHC version
Diffstat (limited to 'includes')
-rw-r--r--includes/ghc.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/ghc.mk b/includes/ghc.mk
index c8180548d3..178bd537ff 100644
--- a/includes/ghc.mk
+++ b/includes/ghc.mk
@@ -75,6 +75,7 @@ $$(includes_$1_H_VERSION) : mk/project.mk | $$$$(dir $$$$@)/.
@echo "#define __GHCVERSION_H__" >> $$@
@echo >> $$@
@echo "#define __GLASGOW_HASKELL__ $$(ProjectVersionInt)" >> $$@
+ @echo "#define __GLASGOW_HASKELL_FULL_VERSION__ $$(ProjectVersion)" >> $$@
@echo >> $$@
@if [ -n "$$(ProjectPatchLevel1)" ]; then \
echo "#define __GLASGOW_HASKELL_PATCHLEVEL1__ $$(ProjectPatchLevel1)" >> $$@; \