1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00

Only prepend the icu lib dir if it exists.

This commit is contained in:
Rob Rix 2016-02-29 09:42:00 -05:00
parent aa774d82ec
commit 62dcddf948

View File

@ -25,7 +25,7 @@ conf x flags = do
localPkgDescr = packageDescription {
P.library = Just $ library {
P.libBuildInfo = libraryBuildInfo {
P.extraLibDirs = icuLibDir : extraLibDirs,
P.extraLibDirs = if icuLibDirExists then icuLibDir : extraLibDirs else extraLibDirs,
P.includeDirs = ((icuSourceDir ++) <$> relativeIncludeDirs) ++ P.includeDirs libraryBuildInfo
}
}