on master help sign in
Only use elm_dependencies.json for native if it's there
b3ef1b2Max New
compiler/Build/Dependencies.hs+4−1
@@ -62,7 +62,10 @@ getDependencies =
62
62
63nativeFiles :: [FilePath] -> ErrorT String IO [FilePath]
63nativeFiles :: [FilePath] -> ErrorT String IO [FilePath]
64nativeFiles directories =
64nativeFiles directories =
65+ do exists <- liftIO $ doesFileExist Path.dependencyFile
66+ if not exists
67+ then return []
65− concat `fmap` mapM getNativeFiles directories
68+ else concat `fmap` mapM getNativeFiles directories
66 where
69 where
67 getNativeFiles dir =
70 getNativeFiles dir =
68 Deps.withDeps (dir </> Path.dependencyFile) $ \deps ->
71 Deps.withDeps (dir </> Path.dependencyFile) $ \deps ->