[commit: ghc] master: Don't set "-O0 -g" C flags when -debug is given (86e2a2a)

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/86e2a2a4853fcb7fb4a16c0890d7ff5c87bb4577

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

commit 86e2a2a4853fcb7fb4a16c0890d7ff5c87bb4577
Author: Ian Lynagh <[email protected]>
Date:   Fri Dec 7 18:36:54 2012 +0000

    Don't set "-O0 -g" C flags when -debug is given
    
    -debug now only determines whether or not a debug RTS is linked in.
    To get main() with debugging symbols you need to explicitly say
        -optc-O0 -optc-g

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

 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 1c47d6d..b4edef1 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -1062,7 +1062,7 @@ wayOptc platform WayThreaded = case platformOS platform of
                                OSOpenBSD -> ["-pthread"]
                                OSNetBSD  -> ["-pthread"]
                                _         -> []
-wayOptc _ WayDebug      = ["-O0", "-g"]
+wayOptc _ WayDebug      = []
 wayOptc _ WayDyn        = []
 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.