whitespace cleanup in build.cpp (sublime...)

master
Allen Webster 2017-07-08 20:50:58 -04:00
parent 0ab0cb9b97
commit e2bb8cf07e
1 changed files with 5 additions and 14 deletions

View File

@ -211,12 +211,8 @@ build(u32 flags, u32 arch, char *code_path, char **code_files, char *out_path, c
} }
switch (arch){ switch (arch){
case Arch_X64: case Arch_X64: fm_add_to_line(line, "/DFTECH_64_BIT"); break;
fm_add_to_line(line, "/DFTECH_64_BIT"); break; case Arch_X86: fm_add_to_line(line, "/DFTECH_32_BIT"); break;
case Arch_X86:
fm_add_to_line(line, "/DFTECH_32_BIT"); break;
default: InvalidCodePath; default: InvalidCodePath;
} }
@ -230,12 +226,8 @@ build(u32 flags, u32 arch, char *code_path, char **code_files, char *out_path, c
if (flags & LIBS){ if (flags & LIBS){
switch (arch){ switch (arch){
case Arch_X64: case Arch_X64: fm_add_to_line(line, CL_LIBS_X64); break;
fm_add_to_line(line, CL_LIBS_X64); break; case Arch_X86: fm_add_to_line(line, CL_LIBS_X86); break;
case Arch_X86:
fm_add_to_line(line, CL_LIBS_X86); break;
default: InvalidCodePath; default: InvalidCodePath;
} }
} }
@ -393,8 +385,7 @@ build(u32 flags, u32 arch, char *code_path, char **code_files, char *out_path, c
if (defines != 0){ if (defines != 0){
for (u32 i = 0; defines[i]; ++i){ for (u32 i = 0; defines[i]; ++i){
char *define_flag = fm_str("-D", defines[i]); char *define_flag = fm_str("-D", defines[i]);
fm_add_to_line(line, "%s", fm_add_to_line(line, "%s", define_flag);
define_flag);
} }
} }