Only use elm_dependencies.json for native if it's there
commitb3ef1b2cde2ab9f558a141fca219bbf670695bb7
authorMax New <maxsnew@gmail.com>
dateMon 12 May 2014, 17:54 (12 years ago)
parent00006ad
compiler/Build/Dependencies.hs+4−1
@@ -62,7 +62,10 @@ getDependencies =
6262
6363nativeFiles :: [FilePath] -> ErrorT String IO [FilePath]
6464nativeFiles directories =
65− concat `fmap` mapM getNativeFiles directories
65+ do exists <- liftIO $ doesFileExist Path.dependencyFile
66+ if not exists
67+ then return []
68+ else concat `fmap` mapM getNativeFiles directories
6669 where
6770 getNativeFiles dir =
6871 Deps.withDeps (dir </> Path.dependencyFile) $ \deps ->