Quicker builds on development

This commit is contained in:
Michael Snoyman 2011-09-22 09:01:27 +03:00
parent 9815fe8891
commit 29ce11cd5a
2 changed files with 4 additions and 2 deletions

View File

@ -36,7 +36,7 @@ main = do
#endif #endif
["devel"] -> devel isDev ["devel"] -> devel isDev
["version"] -> putStrLn "0.9" ["version"] -> putStrLn "0.9"
"configure":rest -> rawSystem cmd ("configure":rest) >>= exitWith "configure":rest -> rawSystem cmd ("configure":"--disable-library-profiling":rest) >>= exitWith
_ -> do _ -> do
putStrLn "Usage: yesod <command>" putStrLn "Usage: yesod <command>"
putStrLn "Available commands:" putStrLn "Available commands:"

View File

@ -37,6 +37,8 @@ library
Settings.StaticFiles Settings.StaticFiles
Handler.Root Handler.Root
ghc-options: -Wall -threaded -O0
executable ~project~ executable ~project~
if flag(devel) if flag(devel)
Buildable: False Buildable: False
@ -45,7 +47,7 @@ executable ~project~
cpp-options: -DPRODUCTION cpp-options: -DPRODUCTION
ghc-options: -Wall -threaded -O2 ghc-options: -Wall -threaded -O2
else else
ghc-options: -Wall -threaded ghc-options: -Wall -threaded -O0
if os(windows) if os(windows)
cpp-options: -DWINDOWS cpp-options: -DWINDOWS