Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Alex D
GHC
Commits
a075bccf
Commit
a075bccf
authored
Nov 05, 2009
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some more build bugs exposed by the addition of the ghc dependency to dph
See comments for details.
parent
f65bf755
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
ghc.mk
ghc.mk
+16
-1
rules/build-package-way.mk
rules/build-package-way.mk
+9
-0
No files found.
ghc.mk
View file @
a075bccf
...
@@ -525,7 +525,7 @@ endif
...
@@ -525,7 +525,7 @@ endif
ifneq
"$(CLEANING)" "YES"
ifneq
"$(CLEANING)" "YES"
BUILD_DIRS
+=
\
BUILD_DIRS
+=
\
$(
patsubst
%, libraries/%,
$(PACKAGES)
$(PACKAGES_STAGE2)
)
$(
patsubst
%, libraries/%,
$(PACKAGES)
)
endif
endif
ifneq
"$(BootingFromHc)" "YES"
ifneq
"$(BootingFromHc)" "YES"
...
@@ -549,6 +549,12 @@ BUILD_DIRS += \
...
@@ -549,6 +549,12 @@ BUILD_DIRS += \
$(GHC_TOUCHY_DIR)
$(GHC_TOUCHY_DIR)
endif
endif
ifneq
"$(CLEANING)" "YES"
# After compiler/, because these packages depend on it
BUILD_DIRS
+=
\
$(
patsubst
%, libraries/%,
$(PACKAGES_STAGE2)
)
endif
# XXX libraries/% must come before any programs built with stage1, see
# XXX libraries/% must come before any programs built with stage1, see
# Note [lib-depends].
# Note [lib-depends].
...
@@ -685,6 +691,15 @@ libraries/bin-package-db/dist-boot/build/Distribution/InstalledPackageInfo/Binar
...
@@ -685,6 +691,15 @@ libraries/bin-package-db/dist-boot/build/Distribution/InstalledPackageInfo/Binar
$(foreach
pkg,$(BOOT_PKGS),$(eval
libraries/
$(pkg)_dist-boot_HC_OPTS
+=
$
$(GhcBootLibHcOpts)
))
$(foreach
pkg,$(BOOT_PKGS),$(eval
libraries/
$(pkg)_dist-boot_HC_OPTS
+=
$
$(GhcBootLibHcOpts)
))
# Make sure we have all the GHCi libs by the time we've built
# ghc-stage2. DPH includes a bit of Template Haskell which needs the
# GHCI libs, and we don't have a better way to express that dependency.
#
GHCI_LIBS
=
$(
foreach
lib,
$(PACKAGES)
,
$
(
libraries/
$(lib)
_dist-install_GHCI_LIB
))
\
$(compiler_stage2_GHCI_LIB)
ghc/stage2/build/tmp/$(ghc_stage2_PROG)
:
$(GHCI_LIBS)
endif
endif
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
...
...
rules/build-package-way.mk
View file @
a075bccf
...
@@ -26,6 +26,15 @@ $(call hs-objs,$1,$2,$3)
...
@@ -26,6 +26,15 @@ $(call hs-objs,$1,$2,$3)
$1_$2_$3_LIB
=
$1
/
$2
/build/libHS
$$
(
$1_PACKAGE
)
-
$$
(
$1_$2_VERSION
)
$$
(
$3_libsuf
)
$1_$2_$3_LIB
=
$1
/
$2
/build/libHS
$$
(
$1_PACKAGE
)
-
$$
(
$1_$2_VERSION
)
$$
(
$3_libsuf
)
$$($1_PACKAGE)-$($1_$2_VERSION)_$2_$3_LIB
=
$$
(
$1_$2_$3_LIB
)
$$($1_PACKAGE)-$($1_$2_VERSION)_$2_$3_LIB
=
$$
(
$1_$2_$3_LIB
)
# hack: the DEPS_LIBS mechanism assumes that the distdirs for packges
# that depend on each other are the same, but that is not the case for
# ghc where we use stage1/stage2 rather than dist/dist-install.
# Really we should use a consistent scheme for distdirs, but in the
# meantime we work around it by defining ghc-<ver>_dist-install_way_LIB:
ifeq
"$$($1_PACKAGE) $2" "ghc stage2"
$$($1_PACKAGE)-$($1_$2_VERSION)_dist-install_$3_LIB
=
$$
(
$1_$2_$3_LIB
)
endif
# All the .a/.so library file dependencies for this library
# All the .a/.so library file dependencies for this library
$1_$2_$3_DEPS_LIBS
=
$
$(
foreach
dep,
$$
(
$1_$2_DEPS
)
,
$$
(
$
$(dep)
_
$2_$3_LIB
))
$1_$2_$3_DEPS_LIBS
=
$
$(
foreach
dep,
$$
(
$1_$2_DEPS
)
,
$$
(
$
$(dep)
_
$2_$3_LIB
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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