This commit is contained in:
Krzosa Karol
2025-04-05 18:59:26 +02:00
parent f3aa52ba3d
commit 2907762d5f
12 changed files with 220 additions and 26 deletions

View File

@@ -41,19 +41,18 @@ void build_testing_target(void) {
ok = os_systemf("testing.exe");
if (ok != 0) exit(ok);
} else {
int ok = os_systemf(
"clang ../src/testing/testing_main.c -o testing.exe -g -I ../src"
" -fdiagnostics-absolute-paths -Wno-unsequenced -Wno-single-bit-bitfield-constant-conversion"
" -lm -ldl"
);
if (ok != 0) exit(ok);
return;
ok = os_systemf("./testing.exe");
if (ok != 0) exit(ok);
}
int ok = os_systemf(
"clang ../src/testing/testing_main.c -o testing.exe -g -I ../src"
" -fdiagnostics-absolute-paths -Wno-unsequenced -Wno-single-bit-bitfield-constant-conversion"
" -lm -ldl"
);
if (ok != 0) exit(ok);
ok = os_systemf("./testing.exe");
if (ok != 0) exit(ok);
}
void build_win32_app_base_target(void) {
@@ -165,13 +164,13 @@ int main(int argc, char **argv) {
generate_testing_code(tcx->temp);
generate_text_editor_code(tcx->temp);
b32 run_server = false;
b32 run_win32_app_base_target = true;
b32 run_testing_target = true;
b32 run_text_editor_dll_target = false;
b32 run_text_editor_dll_target = true;
b32 run_prototype_dll_target = false;
b32 run_prototype_wasm_target = false;
b32 run_prototype_standalone_target = false;
b32 run_server = false;
if (run_server) {
os_systemf("start /D ..\\package ..\\package\\run_server.bat");