Ticket #5929: 0001-Enable-dno-debug-output-if-GHC-is-compiled-w-o-DEBUG.patch

File 0001-Enable-dno-debug-output-if-GHC-is-compiled-w-o-DEBUG.patch, 855 bytes (added by michalt, 3 years ago)
  • compiler/main/StaticFlags.hs

    From 5401e1e66c6162bb929ae49b07e0c4e7aefd8b7e Mon Sep 17 00:00:00 2001
    From: Michal Terepeta <[email protected]>
    Date: Thu, 26 Apr 2012 21:55:42 +0200
    Subject: [PATCH] Enable -dno-debug-output if GHC is compiled w/o DEBUG.
    
    ---
     compiler/main/StaticFlags.hs |    4 ++++
     1 files changed, 4 insertions(+), 0 deletions(-)
    
    diff --git a/compiler/main/StaticFlags.hs b/compiler/main/StaticFlags.hs
    index cfbd4ba..c32c034 100644
    a b opt_Fuel :: Int 
    283283opt_Fuel                        = lookup_def_int "-dopt-fuel" maxBound
    284284
    285285opt_NoDebugOutput   :: Bool
     286#ifdef DEBUG
    286287opt_NoDebugOutput               = lookUp  (fsLit "-dno-debug-output")
     288#else
     289opt_NoDebugOutput               = True
     290#endif
    287291
    288292-- profiling opts
    289293opt_SccProfilingOn :: Bool