Skip to content
Snippets Groups Projects
Commit f1d4699a authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Allow CABAL_VERSION to be defined when bootstrapping

Needed for the GHC build system
parent 1a0cc59e
No related branches found
No related tags found
No related merge requests found
......@@ -201,8 +201,10 @@ import qualified Paths_Cabal (version)
-- We only get our own version number when we're building with ourselves
cabalVersion :: Version
#ifdef VERSION_base
#if defined(VERSION_base)
cabalVersion = Paths_Cabal.version
#elif defined(CABAL_VERSION)
cabalVersion = Version [CABAL_VERSION] []
#else
cabalVersion = Version [1,9999] [] --used when bootstrapping
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment