skip frameworks
I suspect this might be related to recent reports of hangs.
This commit is contained in:
parent
9e8703895c
commit
f850a64bd0
1 changed files with 3 additions and 1 deletions
|
@ -51,7 +51,9 @@ otool :: FilePath -> IO [FilePath]
|
||||||
otool appbase = do
|
otool appbase = do
|
||||||
files <- filterM doesFileExist =<< dirContentsRecursive appbase
|
files <- filterM doesFileExist =<< dirContentsRecursive appbase
|
||||||
s <- readProcess "otool" ("-L" : files)
|
s <- readProcess "otool" ("-L" : files)
|
||||||
return $ nub $ parseOtool s
|
return $ nub $ filter (not . framework) $ parseOtool s
|
||||||
|
where
|
||||||
|
framework f = ".framework" `isInfixOf` f
|
||||||
|
|
||||||
parseOtool :: String -> [FilePath]
|
parseOtool :: String -> [FilePath]
|
||||||
parseOtool = catMaybes . map parse . lines
|
parseOtool = catMaybes . map parse . lines
|
||||||
|
|
Loading…
Reference in a new issue