summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-10-11 16:25:23 +0100
committerIan Lynagh <igloo@earth.li>2012-10-11 16:25:23 +0100
commitb921de768c7ba7b16d05233c5142e028c287dcee (patch)
treebc8415adeab61c9362bae584bf26486c9b62ce3e
parentfe0efaaa646e91e75a649c28cf2a4f7bb52fe96d (diff)
downloadhaskell-b921de768c7ba7b16d05233c5142e028c287dcee.tar.gz
Fix build on Windows
gcc couldn't find ghc_boot_platform.h. I'm not sure why it worked on Linux.
-rw-r--r--compiler/ghc.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ghc.mk b/compiler/ghc.mk
index c514bfc68d..07e185f0d6 100644
--- a/compiler/ghc.mk
+++ b/compiler/ghc.mk
@@ -245,7 +245,7 @@ compiler/stage$1/build/Parser.y: compiler/parser/Parser.y.pp
$$(CPP) $$(RAWCPP_FLAGS) -P $$(compiler_CPP_OPTS) -x c $$< | grep -v '^#pragma GCC' > $$@
compiler/stage$1/build/primops.txt: compiler/prelude/primops.txt.pp compiler/stage$1/$$(PLATFORM_H)
- $$(CPP) $$(RAWCPP_FLAGS) -P $$(compiler_CPP_OPTS) -x c $$< | grep -v '^#pragma GCC' > $$@
+ $$(CPP) $$(RAWCPP_FLAGS) -P $$(compiler_CPP_OPTS) -Icompiler/stage$1 -x c $$< | grep -v '^#pragma GCC' > $$@
ifneq "$$(BootingFromHc)" "YES"
compiler/stage$1/build/primop-data-decl.hs-incl: compiler/stage$1/build/primops.txt $$(GENPRIMOP_INPLACE)