Skip to content

Commit

Permalink
fix asm compilation output
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz committed Dec 14, 2023
1 parent ff4c32d commit d17c137
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/Commands/Dev/Asm/Compile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ runCommand opts = do
ensureDir buildDir
cFile <- inputCFile file
embed $ TIO.writeFile (toFilePath cFile) _resultCCode
Compile.runCommand opts {_compileInputFile = Just (AppPath (preFileFromAbs cFile) False)}
outfile <- Compile.outputFile opts file
Compile.runCommand
opts
{ _compileInputFile = Just (AppPath (preFileFromAbs cFile) False),
_compileOutputFile = Just (AppPath (preFileFromAbs outfile) False)
}
where
getFile :: Sem r (Path Abs File)
getFile = getMainFile (opts ^. compileInputFile)
Expand Down

0 comments on commit d17c137

Please sign in to comment.