Don't make C deps for compiler/parser/cutils.c in stage1
authorIan Lynagh <igloo@earth.li>
Tue, 15 Dec 2009 12:37:57 +0000 (12:37 +0000)
committerIan Lynagh <igloo@earth.li>
Tue, 15 Dec 2009 12:37:57 +0000 (12:37 +0000)
CPP finds the Rts.h, RtsFlags.h etc from the tree, rather than the
bootstrapping compiler, and then fails because it doesn't think
RtsFlags.h should be used any more.

compiler/ghc.mk

index b6592f2..c237df7 100644 (file)
@@ -35,6 +35,8 @@ compiler_stage1_MKDEPENDC_OPTS = -DMAKING_GHC_BUILD_SYSTEM_DEPENDENCIES
 compiler_stage2_MKDEPENDC_OPTS = -DMAKING_GHC_BUILD_SYSTEM_DEPENDENCIES
 compiler_stage3_MKDEPENDC_OPTS = -DMAKING_GHC_BUILD_SYSTEM_DEPENDENCIES
 
+compiler_stage1_C_FILES_NODEPS = compiler/parser/cutils.c
+
 ifneq "$(BINDIST)" "YES"
 compiler/stage1/package-data.mk : $(compiler_CONFIG_HS)
 compiler/stage2/package-data.mk : $(compiler_CONFIG_HS)