Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
f041c305
Commit
f041c305
authored
Dec 09, 2009
by
Ian Lynagh
Browse files
Fix the stage1 version number munging
It was munging 6.12.1 into 62
parent
e6fb8c9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/ghc.mk
View file @
f041c305
...
...
@@ -419,8 +419,13 @@ compiler_PACKAGE = ghc
# Note: we also have to tweak the version number of the package itself
# when it gets registered; see Note [munge-stage1-package-config]
# below.
ifneq
"$(ProjectPatchLevel)" "0"
# The ProjectPatchLevel > 20000000 iff it's a date. If it's e.g. 6.12.1
# then we don't want to remove it
ifeq
"$(shell [ $(ProjectPatchLevel) -gt 20000000 ] && echo YES)" "YES"
compiler_stage1_VERSION_MUNGED
=
YES
endif
ifeq
"$(compiler_stage1_VERSION_MUNGED)" "YES"
define
compiler_PACKAGE_MAGIC
compiler_stage1_VERSION
=
$(
subst
.
$(ProjectPatchLevel)
,,
$(ProjectVersion)
)
endef
...
...
@@ -481,7 +486,7 @@ compiler/main/Constants_HC_OPTS += -fforce-recomp
# Note [munge-stage1-package-config]
# Strip the date/patchlevel from the version of stage1. See Note
# [fiddle-stage1-version] above.
if
n
eq
"$(
ProjectPatchLevel
)" "
0
"
ifeq
"$(
compiler_stage1_VERSION_MUNGED
)" "
YES
"
compiler/stage1/inplace-pkg-config-munged
:
compiler/stage1/inplace-pkg-config
sed
-e
's/^\(version: .*\)\.
$(ProjectPatchLevel)
$$/\1/'
\
-e
's/^\(id: .*\)\.
$(ProjectPatchLevel)
$$/\1/'
\
...
...
Write
Preview
Supports
Markdown
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