Skip to content

Commit

Permalink
Moves walloc to a common directory
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcadman committed Jul 29, 2022
1 parent d3ee7b3 commit 946c774
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 477 deletions.
7 changes: 5 additions & 2 deletions app/Commands/Compile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,14 @@ prepareRuntime projRoot o = do
builtinCRuntimeDir :: [(FilePath, BS.ByteString)]
builtinCRuntimeDir = $(FE.makeRelativeToProject "minic-runtime/builtins" >>= FE.embedDir)

wallocDir :: [(FilePath, BS.ByteString)]
wallocDir = $(FE.makeRelativeToProject "minic-runtime/walloc" >>= FE.embedDir)

runtimeProjectDir :: [(FilePath, BS.ByteString)]
runtimeProjectDir = case o ^. compileRuntime of
RuntimeWasiStandalone -> wasiStandaloneRuntimeDir <> builtinCRuntimeDir
RuntimeWasiStandalone -> wasiStandaloneRuntimeDir <> builtinCRuntimeDir <> wallocDir
RuntimeWasiLibC -> wasiLibCRuntimeDir <> builtinCRuntimeDir
RuntimeStandalone -> standaloneRuntimeDir <> builtinCRuntimeDir
RuntimeStandalone -> standaloneRuntimeDir <> builtinCRuntimeDir <> wallocDir

writeRuntime :: (FilePath, BS.ByteString) -> IO ()
writeRuntime (filePath, contents) =
Expand Down
File renamed without changes.
Loading

0 comments on commit 946c774

Please sign in to comment.