summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-10-15 18:51:07 +0100
committerIan Lynagh <igloo@earth.li>2012-10-15 18:51:07 +0100
commit9f3b92789c1a7cb89fdcf30afc05d7dac66cab7b (patch)
tree203fd13497a7341256442ed2ea88df4406f22024
parent8af2d940c786136a29a061fa9542e39f65e6d6fb (diff)
downloadhaskell-9f3b92789c1a7cb89fdcf30afc05d7dac66cab7b.tar.gz
Use -O0 -g C flags when compiling a debug way
-rw-r--r--compiler/main/DynFlags.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index a5fcd1bc4a..4021ce5afb 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"]