summaryrefslogtreecommitdiff
path: root/compiler/cbits
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2021-10-27 04:06:46 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2021-10-27 20:55:50 +0000
commit5a6f3c285b986891b8b56f8f1b29901892ca4e15 (patch)
tree55addb41e4608890c406b93456c4b02465cf060d /compiler/cbits
parent638f65482ca5265c268aa97abfcc14cdc27e46ba (diff)
downloadhaskell-wip/clean-compiler-includes.tar.gz
Avoid GHC_STAGE and other include bitswip/clean-compiler-includes
We should strive to make our includes in terms of the RTS as much as possible. One place there that is not possible, the llvm version, we make a new tiny header Stage numbers are somewhat arbitrary, if we simple need a newer RTS, we should say so.
Diffstat (limited to 'compiler/cbits')
-rw-r--r--compiler/cbits/genSym.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/cbits/genSym.c b/compiler/cbits/genSym.c
index 19697de25e..9bdadc5a99 100644
--- a/compiler/cbits/genSym.c
+++ b/compiler/cbits/genSym.c
@@ -1,11 +1,14 @@
#include <Rts.h>
#include <assert.h>
#include "Unique.h"
-#include "ghcversion.h"
+#include <ghcversion.h>
// These global variables have been moved into the RTS. It allows them to be
// shared with plugins even if two different instances of the GHC library are
// loaded at the same time (#19940)
+//
+// The CPP is thus about the RTS version GHC is linked against, and not the
+// version of the GHC being built.
#if !MIN_VERSION_GLASGOW_HASKELL(9,3,0,0)
HsInt ghc_unique_counter = 0;
HsInt ghc_unique_inc = 1;