Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : master
http://hackage.haskell.org/trac/ghc/changeset/86e2a2a4853fcb7fb4a16c0890d7ff5c87bb4577 >--------------------------------------------------------------- commit 86e2a2a4853fcb7fb4a16c0890d7ff5c87bb4577 Author: Ian Lynagh <i...@well-typed.com> 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"] _______________________________________________ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc