aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/compile.c b/compile.c
index 3b92ed2..2295f20 100644
--- a/compile.c
+++ b/compile.c
@@ -42,7 +42,7 @@
*
* @return void
*/
-void compile(CleanString path, CleanString module) {
+int64_t compile(CleanString path, CleanString module) {
char* pathchars, * modulechars;
int pathlength, modulelength;
@@ -71,13 +71,13 @@ void compile(CleanString path, CleanString module) {
// Build command:
// clm -ms <module> -o <module>
- char cmd[64] = "clm -ms ";
+ char cmd[64] = "clm -ms -nw ";
strcat(cmd, modulechars);
strcat(cmd, " -o ");
strcat(cmd, modulechars);
// Call clm
- system(cmd);
+ return system(cmd);
}
/**