summaryrefslogtreecommitdiffstats
path: root/b.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2024-06-14 00:10:58 +0300
committergramanas <anastasis.gramm2@gmail.com>2024-06-14 00:10:58 +0300
commit5c2677df733fc7f8a5d12ae3d0e1e648566db2bb (patch)
tree2f5dc7d30a16b4751ae68b2a1d3a641613ba4206 /b.c
parenteb5d40f92c6d2d1d7491c350cbdcef2e8bf96e06 (diff)
downloadcgame-5c2677df733fc7f8a5d12ae3d0e1e648566db2bb.tar.gz
cgame-5c2677df733fc7f8a5d12ae3d0e1e648566db2bb.tar.bz2
cgame-5c2677df733fc7f8a5d12ae3d0e1e648566db2bb.zip
VMA initial integration
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",