Create .objs when doing orbit build if it doesnt exist

This commit is contained in:
Joris Vink 2014-08-01 12:40:37 +02:00
parent 0c21c08b6d
commit e57a91a4e0
1 changed files with 5 additions and 0 deletions

View File

@ -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);