projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add configure option --with-macos-deployment-target
[ghc-hetmet.git]
/
mk
/
config.mk.in
diff --git
a/mk/config.mk.in
b/mk/config.mk.in
index
fc26319
..
da5d957
100644
(file)
--- a/
mk/config.mk.in
+++ b/
mk/config.mk.in
@@
-185,6
+185,11
@@
BootingFromUnregisterisedHc = @BootingFromUnregisterisedHc@
#
XMLDocWays=
#
XMLDocWays=
+# Mac OS X deployment target (to cross-compile for older OS versions)
+#
+MACOS_DEPLOYMENT_VERSION = @MACOS_DEPLOYMENT_VERSION@
+MACOS_DEPLOYMENT_SDK = @MACOS_DEPLOYMENT_SDK@
+
################################################################################
#
# Variables that control how the compiler itself is built
################################################################################
#
# Variables that control how the compiler itself is built
@@
-864,6
+869,9
@@
GHC_STAGE3 = $(GHC_COMPILER_DIR)/stage3/ghc-inplace -no-user-package-conf
# installed for this GHC version. They are bound to be incompatible
# with the packages we built in the tree.
# installed for this GHC version. They are bound to be incompatible
# with the packages we built in the tree.
+ifeq "$(stage)" "2"
+ UseStage1 = YES
+endif
ifneq "$(findstring YES, $(UseStage1) $(BootingFromHc))" ""
# We are using the stage1 compiler to compile Haskell code, set up
ifneq "$(findstring YES, $(UseStage1) $(BootingFromHc))" ""
# We are using the stage1 compiler to compile Haskell code, set up