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
Shayne Fletcher
Glasgow Haskell Compiler
Commits
4ddcff11
Commit
4ddcff11
authored
Jul 28, 2008
by
Simon Marlow
Browse files
don't strip the inplace GHC executables (for debugging)
parent
ca26fe60
Changes
2
Hide whitespace changes
Inline
Side-by-side
ghc/Makefile
View file @
4ddcff11
...
...
@@ -13,6 +13,9 @@ else
INSTALL_FLAGS
=
--enable-shell-wrappers
endif
# Don't strip the inplace versions, we might need to debug them
INPLACE_INSTALL_FLAGS
+=
--disable-executable-stripping
boot
::
boot.stage.$(stage)
all
::
build.stage.$(stage)
...
...
@@ -102,6 +105,7 @@ build.stage.%:
'$$prefix/html'
\
'$$prefix/haddock'
\
--distpref
dist-stage
$*
\
$(INPLACE_INSTALL_FLAGS)
\
$(INSTALL_FLAGS)
# XXX For now we always install the stage 2 compiler
...
...
utils/installPackage/installPackage.hs
View file @
4ddcff11
...
...
@@ -22,8 +22,8 @@ main
idatadir
:
idocdir
:
ihtmldir
:
ihaddockdir
:
args'
->
case
parseArgs
args'
of
(
verbosity
,
distPref
,
enableShellWrappers
)
->
doInstall
verbosity
distPref
enableShellWrappers
(
verbosity
,
distPref
,
enableShellWrappers
,
strip
)
->
doInstall
verbosity
distPref
enableShellWrappers
strip
ghcpkg
ghcpkgconf
destdir
topdir
iprefix
ibindir
ilibdir
ilibexecdir
idynlibdir
idatadir
idocdir
ihtmldir
...
...
@@ -35,21 +35,23 @@ main
parseArgs
::
[
String
]
->
(
Verbosity
,
-- verbosity
FilePath
,
-- dist prefix
Bool
)
-- enable shell wrappers?
parseArgs
=
f
normal
defaultDistPref
False
where
f
v
dp
esw
((
'-'
:
'v'
:
val
)
:
args
)
=
f
(
readEOrFail
flagToVerbosity
val
)
dp
esw
args
f
v
_
esw
(
"--distpref"
:
dp
:
args
)
=
f
v
dp
esw
args
f
v
dp
_
(
"--enable-shell-wrappers"
:
args
)
=
f
v
dp
True
args
f
v
dp
esw
[]
=
(
v
,
dp
,
esw
)
f
_
_
_
args
=
error
(
"Bad arguments: "
++
show
args
)
Bool
,
-- enable shell wrappers?
Bool
)
-- strip exe?
parseArgs
=
f
normal
defaultDistPref
False
True
where
f
v
dp
esw
strip
((
'-'
:
'v'
:
val
)
:
args
)
=
f
(
readEOrFail
flagToVerbosity
val
)
dp
esw
strip
args
f
v
_
esw
strip
(
"--distpref"
:
dp
:
args
)
=
f
v
dp
esw
strip
args
f
v
dp
_
strip
(
"--enable-shell-wrappers"
:
args
)
=
f
v
dp
True
strip
args
f
v
dp
esw
strip
(
"--disable-executable-stripping"
:
args
)
=
f
v
dp
esw
False
args
f
v
dp
esw
strip
[]
=
(
v
,
dp
,
esw
,
strip
)
f
_
_
_
_
args
=
error
(
"Bad arguments: "
++
show
args
)
doInstall
::
Verbosity
->
FilePath
->
Bool
doInstall
::
Verbosity
->
FilePath
->
Bool
->
Bool
->
FilePath
->
FilePath
->
FilePath
->
FilePath
->
FilePath
->
FilePath
->
FilePath
->
FilePath
->
FilePath
->
FilePath
->
FilePath
->
FilePath
->
FilePath
->
IO
()
doInstall
verbosity
distPref
enableShellWrappers
doInstall
verbosity
distPref
enableShellWrappers
strip
ghcpkg
ghcpkgconf
destdir
topdir
iprefix
ibindir
ilibdir
ilibexecdir
idynlibdir
idatadir
idocdir
ihtmldir
ihaddockdir
=
...
...
@@ -95,7 +97,8 @@ doInstall verbosity distPref enableShellWrappers
htmldir
=
toPathTemplate'
ihtmldir
,
haddockdir
=
toPathTemplate'
ihaddockdir
}
lbi_copy
=
lbi
{
installDirTemplates
=
i_copy
}
lbi_copy
=
lbi
{
installDirTemplates
=
i_copy
,
stripExes
=
strip
}
-- When we run GHC we give it a $topdir that includes the
-- $compiler/lib/ part of libsubdir, so we only want the
-- $pkgid part in the package.conf file. This is a bit of
...
...
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