commit e57a91a4e043e1566ec1017e7c57744c06592d28
parent 0c21c08b6d2008b09c45d0f040fd2976128362f2
Author: Joris Vink <joris@coders.se>
Date: Fri, 1 Aug 2014 12:40:37 +0200
Create .objs when doing orbit build if it doesnt exist
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/orbit.c b/src/orbit.c
@@ -218,6 +218,11 @@ orbit_build(int argc, char **argv)
orbit_find_cfiles(spath);
free(spath);
+ orbit_vasprintf(&spath, "%s/.objs", rootdir);
+ if (!orbit_dir_exists(spath))
+ orbit_mkdir(spath, 0755);
+ free(spath);
+
TAILQ_FOREACH(cf, &source_files, list) {
printf("compiling %s\n", cf->fpath);
orbit_spawn_proc(orbit_compile_cfile, cf);