debug also displays sys lib dir.
This commit is contained in:
parent
3bd0c3dafb
commit
770644e87d
@ -33,6 +33,7 @@ debug opt cradle fileName = do
|
|||||||
return simpleCompilerOption
|
return simpleCompilerOption
|
||||||
void $ initializeFlagsWithCradle opt cradle gopts True
|
void $ initializeFlagsWithCradle opt cradle gopts True
|
||||||
setTargetFiles [fileName]
|
setTargetFiles [fileName]
|
||||||
|
mglibdir <- liftIO $ getSystemLibDir
|
||||||
return [
|
return [
|
||||||
"Root directory: " ++ rootDir
|
"Root directory: " ++ rootDir
|
||||||
, "Current directory: " ++ currentDir
|
, "Current directory: " ++ currentDir
|
||||||
@ -40,6 +41,7 @@ debug opt cradle fileName = do
|
|||||||
, "GHC options: " ++ unwords gopts
|
, "GHC options: " ++ unwords gopts
|
||||||
, "Include directories: " ++ unwords incDir
|
, "Include directories: " ++ unwords incDir
|
||||||
, "Dependent packages: " ++ intercalate ", " (map fst pkgs)
|
, "Dependent packages: " ++ intercalate ", " (map fst pkgs)
|
||||||
|
, "System libraries: " ++ fromMaybe "" mglibdir
|
||||||
]
|
]
|
||||||
where
|
where
|
||||||
currentDir = cradleCurrentDir cradle
|
currentDir = cradleCurrentDir cradle
|
||||||
|
Loading…
Reference in New Issue
Block a user