From 29ce11cd5ac6ad230ced9b02b9a4e3236448221c Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Thu, 22 Sep 2011 09:01:27 +0300 Subject: [PATCH] Quicker builds on development --- yesod/main.hs | 2 +- yesod/scaffold/project.cabal.cg | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/yesod/main.hs b/yesod/main.hs index 988edfc6..a5719efa 100755 --- a/yesod/main.hs +++ b/yesod/main.hs @@ -36,7 +36,7 @@ main = do #endif ["devel"] -> devel isDev ["version"] -> putStrLn "0.9" - "configure":rest -> rawSystem cmd ("configure":rest) >>= exitWith + "configure":rest -> rawSystem cmd ("configure":"--disable-library-profiling":rest) >>= exitWith _ -> do putStrLn "Usage: yesod " putStrLn "Available commands:" diff --git a/yesod/scaffold/project.cabal.cg b/yesod/scaffold/project.cabal.cg index 28a7f889..3055a7e6 100644 --- a/yesod/scaffold/project.cabal.cg +++ b/yesod/scaffold/project.cabal.cg @@ -37,6 +37,8 @@ library Settings.StaticFiles Handler.Root + ghc-options: -Wall -threaded -O0 + executable ~project~ if flag(devel) Buildable: False @@ -45,7 +47,7 @@ executable ~project~ cpp-options: -DPRODUCTION ghc-options: -Wall -threaded -O2 else - ghc-options: -Wall -threaded + ghc-options: -Wall -threaded -O0 if os(windows) cpp-options: -DWINDOWS