From 5c2677df733fc7f8a5d12ae3d0e1e648566db2bb Mon Sep 17 00:00:00 2001 From: gramanas Date: Fri, 14 Jun 2024 00:10:58 +0300 Subject: VMA initial integration --- b.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'b.c') diff --git a/b.c b/b.c index ec037ed..a83f128 100644 --- a/b.c +++ b/b.c @@ -10,7 +10,7 @@ void debug_or_release(B_Cmd* cmd) { if (debug_level == 0) - b_cmd_append(cmd, "-O3", "-s"); + b_cmd_append(cmd, "-O3", "-s", "-DNDEBUG"); else if (debug_level == 1) b_cmd_append(cmd, "-O2", "-ggdb", "-DVKDEBUG"); else if (debug_level == 2) @@ -37,6 +37,7 @@ cflags(B_Cmd* cmd) b_cmd_append(cmd, "-march=native"); b_cmd_append(cmd, "-fno-math-errno", "-funroll-loops"); b_cmd_append(cmd, "-flto", "-pthread"); + b_cmd_append(cmd, "-fsanitize=address"); inlcude_dirs(cmd); } @@ -51,6 +52,7 @@ void cxxflags(B_Cmd *cmd) b_cmd_append(cmd, "-march=native"); b_cmd_append(cmd, "-fno-math-errno", "-funroll-loops"); b_cmd_append(cmd, "-flto", "-pthread"); + b_cmd_append(cmd, "-fsanitize=address"); inlcude_dirs(cmd); //b_cmd_append(cmd, "-O3"); @@ -216,6 +218,22 @@ main(int argc, char *argv[]) } } + /* const char* const new_deps[][100] = { */ + /* { "src/state.h" }, */ + /* { "src/vksetup.h" }, */ + /* { "src/cplusplus", */ + /* "lib/imgui-1.90.7/imgui.cpp", */ + /* "lib/imgui-1.90.7/imgui_demo.cpp", */ + /* "lib/imgui-1.90.7/imgui_draw.cpp", */ + /* "lib/imgui-1.90.7/imgui_tables.cpp", */ + /* "lib/imgui-1.90.7/imgui_widgets.cpp", */ + /* "lib/imgui-1.90.7/backends/imgui_impl_sdl2.cpp", */ + /* "lib/imgui-1.90.7/backends/imgui_impl_vulkan.cpp" }, */ + /* {"src/testlib", "src/hash" } */ + /* }; */ + + /* if (!build("render", "src/render.c", new_deps, B_ARRAY_LEN(new_deps))) return 1; */ + const char* cplusplus_deps[] = { "lib/imgui-1.90.7/imgui.cpp", "lib/imgui-1.90.7/imgui_demo.cpp", -- cgit v1.2.3