mirror of
https://github.com/composewell/streamly.git
synced 2024-09-11 19:47:10 +03:00
Define the cpp macro DEBUG when debug flag is on
This commit is contained in:
parent
76a6db56fe
commit
6c934ae2d1
@ -39,6 +39,7 @@ module Streamly.Internal.Data.MutByteArray.Type
|
||||
|
||||
import Control.Monad.IO.Class (MonadIO(..))
|
||||
#ifdef DEBUG
|
||||
import Control.Monad (when)
|
||||
import Debug.Trace (trace)
|
||||
#endif
|
||||
import GHC.Base (IO(..))
|
||||
|
@ -224,6 +224,7 @@ common optimization-options
|
||||
|
||||
-- For this to be effective it must come after the -O2 option
|
||||
if flag(dev) || flag(debug) || !flag(opt)
|
||||
cpp-options: -DDEBUG
|
||||
ghc-options: -fno-ignore-asserts
|
||||
|
||||
common threading-options
|
||||
|
@ -332,6 +332,7 @@ common optimization-options
|
||||
-- For this to be effective it must come after the -O2 option
|
||||
if flag(dev) || flag(debug) || !flag(opt)
|
||||
ghc-options: -fno-ignore-asserts
|
||||
cpp-options: -DDEBUG
|
||||
|
||||
common threading-options
|
||||
ghc-options: -threaded
|
||||
|
Loading…
Reference in New Issue
Block a user