[commit: ghc] master: Use -O0 -g C flags when compiling a debug way (9f3b927)

Ian Lynagh <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
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

>---------------------------------------------------------------

 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"]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.