B-Lang-org / bsc

Bluespec Compiler (BSC)
Other
954 stars 146 forks source link

Fix Bluetcl use of GHC macros, for older GHC #675

Closed quark17 closed 9 months ago

quark17 commented 9 months ago

Recent changes to record the GHC version in Bluetcl use the __GLASGOW_HASKELL_FULL_VERSION__ CPP macro. The GHC docs are misleading and can be interpreted as suggesting that this macro has been around since 7.10, but actually it was introduced in 9.0. (It is other macros mentioned below it that have been around since 7.10.) For older GHC, we can construct the version from other macros (that have been around since at least 7.10).