fixup build on linux
parent
0642d555fc
commit
a4137ca739
|
@ -342,15 +342,20 @@ build(u32 flags, u32 arch, char *code_path, char **code_files, char *out_path, c
|
||||||
#define GCC_SITE_INCLUDES "-I../../foreign -I../../code"
|
#define GCC_SITE_INCLUDES "-I../../foreign -I../../code"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
build(u32 flags, char *code_path, char **code_files, char *out_path, char *out_file, char *exports, char **inc_folders){
|
build(u32 flags, u32 arch, char *code_path, char **code_files, char *out_path, char *out_file, char *exports, char **inc_folders){
|
||||||
Build_Line line;
|
Build_Line line;
|
||||||
fm_init_build_line(&line);
|
fm_init_build_line(&line);
|
||||||
|
|
||||||
if (flags & X86){
|
switch (arch){
|
||||||
fm_add_to_line(line, GCC_X86);
|
case Arch_X64:
|
||||||
}
|
|
||||||
else{
|
|
||||||
fm_add_to_line(line, GCC_X64);
|
fm_add_to_line(line, GCC_X64);
|
||||||
|
fm_add_to_line(line, "-DFTECH_64_BIT"); break;
|
||||||
|
|
||||||
|
case Arch_X86:
|
||||||
|
fm_add_to_line(line, GCC_X86);
|
||||||
|
fm_add_to_line(line, "-DFTECH_32_BIT"); break;
|
||||||
|
|
||||||
|
default: InvalidCodePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flags & OPTS){
|
if (flags & OPTS){
|
||||||
|
@ -501,7 +506,7 @@ do_buildsuper(char *cdir, char *file, u32 arch){
|
||||||
if (This_OS == Platform_Windows){
|
if (This_OS == Platform_Windows){
|
||||||
build_command = fm_str("call ", build_command);
|
build_command = fm_str("call ", build_command);
|
||||||
}
|
}
|
||||||
systemf(build_command);
|
systemf("%s", build_command);
|
||||||
|
|
||||||
fm_popdir(temp);
|
fm_popdir(temp);
|
||||||
END_TIME_SECTION("build custom");
|
END_TIME_SECTION("build custom");
|
||||||
|
|
Loading…
Reference in New Issue