Skip to content

Commit

Permalink
Don't set "-O0 -g" C flags when -debug is given
Browse files Browse the repository at this point in the history
-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
  • Loading branch information
Ian Lynagh committed Dec 7, 2012
1 parent b85a849 commit 86e2a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/main/DynFlags.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 86e2a2a

Please sign in to comment.