mirror of
https://github.com/anoma/juvix.git
synced 2024-12-13 19:49:20 +03:00
Fix a bug with the path to walloc.c (#237)
This commit is contained in:
parent
82d1f3ecf7
commit
f1921bbf91
@ -138,7 +138,7 @@ clangCompile projRoot compileInputFile o = do
|
||||
where
|
||||
clangArgs :: [String]
|
||||
clangArgs = case o ^. compileRuntime of
|
||||
RuntimeStandalone -> standaloneArgs sysrootPath outputFile inputFile
|
||||
RuntimeStandalone -> standaloneArgs projRoot sysrootPath outputFile inputFile
|
||||
RuntimeLibC -> libcArgs sysrootPath outputFile inputFile
|
||||
|
||||
outputFile :: FilePath
|
||||
@ -147,10 +147,10 @@ clangCompile projRoot compileInputFile o = do
|
||||
inputFile :: FilePath
|
||||
inputFile = inputCFile projRoot compileInputFile
|
||||
|
||||
standaloneArgs :: FilePath -> FilePath -> FilePath -> [String]
|
||||
standaloneArgs sysrootPath wasmOutputFile inputFile =
|
||||
standaloneArgs :: FilePath -> FilePath -> FilePath -> FilePath -> [String]
|
||||
standaloneArgs projRoot sysrootPath wasmOutputFile inputFile =
|
||||
commonArgs sysrootPath wasmOutputFile
|
||||
<> [minijuvixBuildDir </> "walloc.c", inputFile]
|
||||
<> [projRoot </> minijuvixBuildDir </> "walloc.c", inputFile]
|
||||
|
||||
libcArgs :: FilePath -> FilePath -> FilePath -> [String]
|
||||
libcArgs sysrootPath wasmOutputFile inputFile =
|
||||
|
Loading…
Reference in New Issue
Block a user