The created binary is now saved in the output folder.
This commit is contained in:
parent
5062356cef
commit
582747a997
2 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ optimize :: String -> IO String
|
|||
optimize = readCreateProcess (shell "opt --O3 -S")
|
||||
|
||||
compileClang :: String -> IO String
|
||||
compileClang = readCreateProcess (shell "clang -x ir -o hello_world -")
|
||||
compileClang = readCreateProcess (shell "clang -x ir -o output/hello_world -")
|
||||
|
||||
compile :: String -> IO String
|
||||
compile s = optimize s >>= compileClang
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue