Tell Cabal what it's version number is while bootstrapping it
authorDuncan Coutts <duncan.coutts@worc.ox.ac.uk>
Thu, 18 Oct 2007 22:21:28 +0000 (22:21 +0000)
committerDuncan Coutts <duncan.coutts@worc.ox.ac.uk>
Thu, 18 Oct 2007 22:21:28 +0000 (22:21 +0000)
This means that it'll work with all the packages that specify a cabal-version

libraries/Makefile

index 89f10f8..f30554e 100644 (file)
@@ -140,8 +140,8 @@ endif
 
 BOOTSTRAP_LIBS = Cabal filepath
 BOOTSTRAP_STAMPS = $(addprefix stamp/bootstrapping.,$(BOOTSTRAP_LIBS))
-BOOTSTRAP_INC_1_UP = $(addprefix -i../bootstrapping.,$(BOOTSTRAP_LIBS))
-BOOTSTRAP_INC_2_UP = $(addprefix -i../../bootstrapping.,$(BOOTSTRAP_LIBS))
+BOOTSTRAP_INC_1_UP = -DCABAL_VERSION=1,3 $(addprefix -i../bootstrapping.,$(BOOTSTRAP_LIBS))
+BOOTSTRAP_INC_2_UP = -DCABAL_VERSION=1,3 $(addprefix -i../../bootstrapping.,$(BOOTSTRAP_LIBS))
 
 .PHONY: subdirs