Proper disable-library-profiling

This commit is contained in:
Michael Snoyman 2011-09-22 12:02:08 +03:00
parent d77972ab60
commit 05ca4bc907
2 changed files with 3 additions and 3 deletions

View File

@ -66,8 +66,8 @@ devel isDevel = do
checkCabalFile gpd
_ <- if isDevel
then rawSystem "cabal-dev" ["configure", "--cabal-install-arg=-fdevel"]
else rawSystem "cabal" ["configure", "-fdevel"]
then rawSystem "cabal-dev" ["configure", "--cabal-install-arg=-fdevel", "--disable-library-profiling"]
else rawSystem "cabal" ["configure", "-fdevel", "--disable-library-profiling"]
T.writeFile "dist/devel.hs" (develFile pid)

View File

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