summaryrefslogtreecommitdiffstats
path: root/b.c
diff options
context:
space:
mode:
Diffstat (limited to 'b.c')
-rw-r--r--b.c20
1 files changed, 19 insertions, 1 deletions
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",