Commit 51b5bc7d authored by Simon Marlow's avatar Simon Marlow
Browse files

HC bootstrapping fix: add -I$(GHC_INCLUDE_DIR) to SRC_CC_OPTS

And add a comment explaining why these options are here
parent c8b84d15
......@@ -1060,7 +1060,13 @@ publish-sdist :
ifeq "$(BootingFromHc)" "YES"
# In a normal build we use GHC to compile C files (see
# rules/, which passes a number of its own options
# to the C compiler. So when bootstrapping we have to provide these
# flags explicitly to C compilations.
SRC_CC_OPTS += -D__GLASGOW_HASKELL__=$(ProjectVersionInt)
# -----------------------------------------------------------------------------
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment