The created binary is now saved in the output folder.

This commit is contained in:
Samuel Hammersberg 2023-03-27 10:07:04 +02:00
parent 5062356cef
commit 582747a997
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -72,7 +72,7 @@ main' debug s = do
debugDotViz
compile generatedCode
spawnWait "./hello_world"
spawnWait "./output/hello_world"
-- interpred <- fromInterpreterErr $ interpret lifted
-- putStrLn "\n-- interpret"
-- print interpred