Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
51b5bc7d
Commit
51b5bc7d
authored
Nov 12, 2009
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc.mk
View file @
51b5bc7d
...
...
@@ -1060,7 +1060,13 @@ publish-sdist :
endif
ifeq
"$(BootingFromHc)" "YES"
SRC_CC_OPTS
+=
-DNO_REGS
-DUSE_MINIINTERPRETER
-D__GLASGOW_HASKELL__
=
$(ProjectVersionInt)
# In a normal build we use GHC to compile C files (see
# rules/c-suffix-rules.mk), 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
+=
-DNO_REGS
-DUSE_MINIINTERPRETER
SRC_CC_OPTS
+=
-D__GLASGOW_HASKELL__
=
$(ProjectVersionInt)
SRC_CC_OPTS
+=
-I
$(GHC_INCLUDE_DIR)
endif
# -----------------------------------------------------------------------------
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment