Re: [commit: ghc] master: Use -O0 -g C flags when compiling a debug way (9f3b927)
Simon Marlow <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.cvs.ghc |
|---|---|
| Message-ID | <[email protected]> |
On 15/10/12 14:55, Ian Lynagh wrote: > Repository : ssh://darcs.haskell.org//srv/darcs/ghc > > On branch : master > > http://hackage.haskell.org/trac/ghc/changeset/9f3b92789c1a7cb89fdcf30afc05d7dac66cab7b > >> --------------------------------------------------------------- > > commit 9f3b92789c1a7cb89fdcf30afc05d7dac66cab7b > Author: Ian Lynagh <[email protected]> > Date: Mon Oct 15 18:51:07 2012 +0100 > > Use -O0 -g C flags when compiling a debug way Hmm, I think of -debug as a link-time option. Do we want it adding flags to the C compiler too? Cheers, Simon >> --------------------------------------------------------------- > > compiler/main/DynFlags.hs | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs > index a5fcd1b..4021ce5 100644 > --- a/compiler/main/DynFlags.hs > +++ b/compiler/main/DynFlags.hs > @@ -1059,7 +1059,7 @@ wayOptc platform WayThreaded = case platformOS platform of > OSOpenBSD -> ["-pthread"] > OSNetBSD -> ["-pthread"] > _ -> [] > -wayOptc _ WayDebug = [] > +wayOptc _ WayDebug = ["-O0", "-g"] > wayOptc _ WayDyn = ["-DDYNAMIC"] > wayOptc _ WayProf = ["-DPROFILING"] > wayOptc _ WayEventLog = ["-DTRACING"] > > > > _______________________________________________ > Cvs-ghc mailing list > [email protected] > http://www.haskell.org/mailman/listinfo/cvs-ghc >