From 3ad7685b885959bf95188bfc01b60a4354b75bde Mon Sep 17 00:00:00 2001 From: Timerix Date: Fri, 16 Jan 2026 18:14:34 +0500 Subject: [PATCH] v2.3.3: fixed default build tasks not deleting old out file --- CBUILD_VERSION | 2 +- CHANGELOG.md | 3 +++ cbuild.sh | 2 +- default_tasks/build_exec.sh | 1 + default_tasks/build_shared_lib.sh | 2 ++ default_tasks/build_static_lib.sh | 2 ++ project.config.default | 2 +- 7 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CBUILD_VERSION b/CBUILD_VERSION index e703481..45674f1 100644 --- a/CBUILD_VERSION +++ b/CBUILD_VERSION @@ -1 +1 @@ -2.3.2 \ No newline at end of file +2.3.3 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ff3313..4306824 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2.3.3 ++ now all default build dasks delete out file before building new one + ## 2.3.2 + fixed symlink creation in `OBJDIR/static_libs` diff --git a/cbuild.sh b/cbuild.sh index dcb139c..eb77f89 100755 --- a/cbuild.sh +++ b/cbuild.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -INSTALLED_CBUILD_VERSION=2.3.2 +INSTALLED_CBUILD_VERSION=2.3.3 # set \t size to 4 spaces tabs 4 diff --git a/default_tasks/build_exec.sh b/default_tasks/build_exec.sh index c1f380d..6033322 100755 --- a/default_tasks/build_exec.sh +++ b/default_tasks/build_exec.sh @@ -2,6 +2,7 @@ # delete old objects clean_dir "$OBJDIR/objects" +rm -f "$EXEC_FILE" # copy profiling info prof_files=$(find "$OBJDIR/profile/" -name '*.gcda') diff --git a/default_tasks/build_shared_lib.sh b/default_tasks/build_shared_lib.sh index bebf893..acb6cf1 100755 --- a/default_tasks/build_shared_lib.sh +++ b/default_tasks/build_shared_lib.sh @@ -2,6 +2,8 @@ # delete old objects clean_dir "$OBJDIR/objects" +rm -f "$SHARED_LIB_FILE" + [ ! -z "$SRC_C" ] && compile_c "$CMP_C" "$STD_C" "$WARN_C" "$C_ARGS" "$INCLUDE" "$SRC_C" [ ! -z "$SRC_CPP" ] && compile_cpp "$CMP_CPP" "$STD_CPP" "$WARN_CPP" "$CPP_ARGS" "$INCLUDE" "$SRC_CPP" link "$LINKER_ARGS" "$SHARED_LIB_FILE" diff --git a/default_tasks/build_static_lib.sh b/default_tasks/build_static_lib.sh index 6be5ccb..bc154a9 100755 --- a/default_tasks/build_static_lib.sh +++ b/default_tasks/build_static_lib.sh @@ -2,6 +2,8 @@ # delete old objects clean_dir "$OBJDIR/objects" +rm -f "$STATIC_LIB_FILE" + [ ! -z "$SRC_C" ] && compile_c "$CMP_C" "$STD_C" "$WARN_C" "$C_ARGS" "$INCLUDE" "$SRC_C" [ ! -z "$SRC_CPP" ] && compile_cpp "$CMP_CPP" "$STD_CPP" "$WARN_CPP" "$CPP_ARGS" "$INCLUDE" "$SRC_CPP" pack_static_lib "$STATIC_LIB_FILE" diff --git a/project.config.default b/project.config.default index 6e5f05d..8889ccd 100755 --- a/project.config.default +++ b/project.config.default @@ -1,5 +1,5 @@ #!/usr/bin/env bash -CBUILD_VERSION=2.3.2 +CBUILD_VERSION=2.3.3 PROJECT="%PROJECT_NAME%" CMP_C="gcc"