summaryrefslogtreecommitdiffstats
path: root/b.c
diff options
context:
space:
mode:
authorgrm <grm@eyesin.space>2025-02-22 03:40:43 +0200
committergrm <grm@eyesin.space>2025-02-22 03:40:43 +0200
commit35208c579c9e7d0078d786e61f4a323919e2dcdf (patch)
tree022f464e6350c18f76443a6e96eccd02698df7d1 /b.c
parent500b9a07b93d6cd3e771edc5698e06d163da60f1 (diff)
downloadsynth-project-master.tar.gz
synth-project-master.tar.bz2
synth-project-master.zip
Small fixesHEADmaster
Diffstat (limited to 'b.c')
-rw-r--r--b.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/b.c b/b.c
index 8eae71f..54e10ab 100644
--- a/b.c
+++ b/b.c
@@ -4,7 +4,7 @@
#define BUILD_DIR "build/"
-int debug_level = 5;
+int debug_level = 0;
void
debug_or_release(B_Cmd* cmd)
@@ -26,7 +26,7 @@ void
inlcude_dirs(B_Cmd* cmd)
{
b_cmd_append(cmd, "-I./src/");
-}
+}
void
cflags(B_Cmd* cmd)
@@ -90,7 +90,7 @@ build_c(bool force,
int dep_rebuild = 0;
if (rebuild_is_needed == 0)
dep_rebuild = b_needs_rebuild(output_path, dep_paths, dep_paths_len);
-
+
if (rebuild_is_needed < 0 || dep_rebuild < 0) return false;
if (force || rebuild_is_needed || dep_rebuild) {
@@ -112,7 +112,7 @@ main(int argc, char *argv[])
B_GO_REBUILD_URSELF(argc, argv);
const char *program_name = b_shift_args(&argc, &argv);
-
+ (void)program_name;
bool force = false;
while (argc > 0) {
@@ -174,7 +174,7 @@ main(int argc, char *argv[])
};
B_Cmd cmd = {0};
-
+
b_mkdir_if_not_exists(BUILD_DIR);
if (!build_c(force, &cmd, synth_paths, B_ARRAY_LEN(synth_paths), synth_deps,