diff options
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -65,13 +65,12 @@ int64_t compile(CleanString path, CleanString module) { for (i=0;i<pathlength;i++) pathchars[i] = CleanStringCharacters(path)[i]; pathchars[i] = 0x00; - - // cd to <path> - chdir(pathchars); // Build command: - // clm -ms <module> -o <module> - char cmd[64] = "clm -ms -nw "; + // cd "<path>" && clm -ms <module> -o <module> + char cmd[64] = "cd \""; + strcat(cmd, pathchars); + strcat(cmd, "\" && clm -ms -nw "); strcat(cmd, modulechars); strcat(cmd, " -o "); strcat(cmd, modulechars); |