aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorCamil Staps2016-10-18 23:52:49 +0200
committerCamil Staps2016-10-18 23:53:46 +0200
commitca6d92ece51042024ae99e3e52cfb89801db97b0 (patch)
treee20f3ccfebf068e19962122f545169297334d353 /compile.c
parentCleanup (diff)
Template file
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/compile.c b/compile.c
index 6366a3d..d32c7ac 100644
--- a/compile.c
+++ b/compile.c
@@ -67,11 +67,20 @@ int64_t compile(CleanString path, CleanString module) {
}
// Build command:
- // cd "<path>" && clm -ms -nw -b -nt <module> -o <module>
- char cmd[182];
- snprintf(cmd, 181, "cd \"%s\" && clm -ms -nw -I $CLEAN_HOME/lib/StdLib -I "
- "$CLEAN_HOME/lib/Generics -I $CLEAN_HOME/lib/Dynamics -dynamics "
- "-I $CLEAN_HOME/lib/Gast -b -nt %s -o %s",
+ char cmd[512];
+ snprintf(cmd, 511, "cd \"%s\" && clm -ms -nw "
+ "-I $CLEAN_HOME/lib/Generics "
+ "-I $CLEAN_HOME/lib/Dynamics -dynamics "
+ "-I $CLEAN_HOME/lib/Gast "
+ "-I $CLEAN_HOME/lib/clean-platform/OS-Independent "
+ "-I $CLEAN_HOME/lib/clean-platform/OS-Independent/Deprecated/StdLib "
+ "-I $CLEAN_HOME/lib/clean-platform/OS-Posix "
+ "-I $CLEAN_HOME/lib/clean-platform/OS-Linux "
+ "-I $CLEAN_HOME/lib/clean-platform/OS-Linux-64 "
+ "-I $CLEAN_HOME/lib/ArgEnv "
+ "-I $CLEAN_HOME/lib/Directory "
+ "-I $CLEAN_HOME/lib/MersenneTwister "
+ "-b -nt %s -o %s",
pathchars, modulechars, modulechars);
free(pathchars);