Commit 57ee692 1 parent 56eee0f commit 57ee692 Copy full SHA for 57ee692
File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,9 @@ object Compiler {
76
76
.getResourceAsStream(RuntimeHeader )
77
77
val io = ProcessIO (
78
78
in => {
79
- in.write(generated.getBytes())
80
- // in.write(runtimeHeader.readAllBytes())
79
+ in.write(runtimeHeader.readAllBytes())
81
80
// TODO removing #include runtime.h is a horrendous hack
82
- // in.write(generated.replaceAll("#include \"runtime.h\"", "").getBytes())
81
+ in.write(generated.replaceAll(" #include \" runtime.h\" " , " " ).getBytes())
83
82
in.close()
84
83
},
85
84
out => print(String (out.readAllBytes())),
@@ -89,7 +88,7 @@ object Compiler {
89
88
val extraIncludes =
90
89
if (settings.includeMemcheck) " -I /usr/include/valgrind" else " "
91
90
92
- assert(s " gcc -g -I ${includesFolder()} $extraIncludes -o $outExe -x c - " .run(io).exitValue() == 0 )
91
+ assert(s " gcc -g $extraIncludes -o $outExe -x c - " .run(io).exitValue() == 0 )
93
92
File (outExe).setExecutable(true )
94
93
95
94
runtimeHeader.close()
You can’t perform that action at this time.
0 commit comments