From: Kevin Day Date: Wed, 10 Dec 2025 04:25:13 +0000 (-0600) Subject: Refactor: Build mode gcc_13 to flex_arrays to provide a more generic name. X-Git-Tag: 0.7.4~14 X-Git-Url: https://www.git.kevux.org/?a=commitdiff_plain;h=294cc505da970bcbafba9762d04052fd44297ac7;p=control Refactor: Build mode gcc_13 to flex_arrays to provide a more generic name. The `gcc_13` was a temporary mode and I don't want to have version specific modes. Replace the mode witha more long term version unspecific name `flex_arrays`. --- diff --git a/data/build/fakefile b/data/build/fakefile index 437429b..ef25281 100644 --- a/data/build/fakefile +++ b/data/build/fakefile @@ -2,7 +2,7 @@ settings: fail exit - modes individual individual_thread level monolithic clang coverage fanalyzer gcc gcc_13 test thread threadless + modes android clang coverage debug fanalyzer flex_arrays gcc individual individual_thread level monolithic test thread threadless environment PATH LD_LIBRARY_PATH environment LANG LC_ALL LC_COLLATE LC_CTYPE LC_FASTMSG LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME LOCPATH NLSPATH diff --git a/data/build/settings b/data/build/settings index e260449..87dcb26 100644 --- a/data/build/settings +++ b/data/build/settings @@ -6,8 +6,8 @@ # - coverage: Compile for building coverage. # - debug: Enable debugging, such as compile time debug options. # - fanalyzer: Compile using GCC's -fanalyzer compile time option. +# - flex_arrays: Use GCC strict flex arrays (supported by GCC version 13 or greater). # - gcc: Use GCC specific settings. -# - gcc_13: Use GCC version 13 or greater specific settings. # - individual: Compile using per project (individual) libraries, does not handle thread or threadless cases. # - individual_thread: This is required when compiling in individual mode with "thread" mode. # - level: Compile using per level libraries. @@ -25,7 +25,7 @@ version_micro 4 version_file micro version_target minor -modes android clang coverage debug gcc gcc_13 fanalyzer individual individual_thread level monolithic test thread threadless +modes android clang coverage debug fanalyzer flex_arrays gcc individual individual_thread level monolithic test thread threadless modes_default debug gcc monolithic thread build_compiler gcc @@ -84,7 +84,7 @@ flags-android -Wno-implicit-function-declaration -Wl,-z,norelro flags-clang -Wno-logical-op-parentheses flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags-fanalyzer -fanalyzer -flags-gcc_13 -fstrict-flex-arrays=3 +flags-flex_arrays -fstrict-flex-arrays=3 flags-test -O0 -fstack-protector-strong -Wall flags-thread -pthread diff --git a/data/build/settings.control b/data/build/settings.control index bf7ddf0..20bd2e8 100644 --- a/data/build/settings.control +++ b/data/build/settings.control @@ -6,8 +6,8 @@ # - coverage: Compile for building coverage. # - debug: Enable debugging, such as compile time debug options. # - fanalyzer: Compile using GCC's -fanalyzer compile time option. +# - flex_arrays: Use GCC strict flex arrays (supported by GCC version 13 or greater). # - gcc: Use GCC specific settings. -# - gcc_13: Use GCC version 13 or greater specific settings. # - individual: Compile using per project (individual) libraries, does not handle thread or threadless cases. # - individual_thread: This is required when compiling in individual mode with "thread" mode. # - level: Compile using per level libraries. @@ -25,7 +25,7 @@ version_micro 4 version_file micro version_target minor -modes android clang coverage debug gcc gcc_13 fanalyzer individual individual_thread level monolithic test thread threadless +modes android clang coverage debug fanalyzer flex_arrays gcc individual individual_thread level monolithic test thread threadless modes_default debug gcc monolithic thread build_compiler gcc @@ -84,7 +84,7 @@ flags-android -Wno-implicit-function-declaration -Wl,-z,norelro flags-clang -Wno-logical-op-parentheses flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags-fanalyzer -fanalyzer -flags-gcc_13 -fstrict-flex-arrays=3 +flags-flex_arrays -fstrict-flex-arrays=3 flags-test -O0 -fstack-protector-strong -Wall flags-thread -pthread diff --git a/data/build/stand_alone/fakefile b/data/build/stand_alone/fakefile index 39fae66..e414947 100644 --- a/data/build/stand_alone/fakefile +++ b/data/build/stand_alone/fakefile @@ -13,7 +13,7 @@ settings: fail exit - modes clang coverage fanalyzer gcc gcc_13 test thread threadless + modes android clang coverage debug fanalyzer flex_arrays gcc test thread threadless environment PATH LD_LIBRARY_PATH environment LANG LC_ALL LC_COLLATE LC_CTYPE LC_FASTMSG LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME LOCPATH NLSPATH diff --git a/data/build/stand_alone/settings.control b/data/build/stand_alone/settings.control index 0ae82a9..b8d8636 100644 --- a/data/build/stand_alone/settings.control +++ b/data/build/stand_alone/settings.control @@ -6,16 +6,16 @@ # fake -s data/build/stand_alone/settings.control clean build # # Modes: -# - android: Compile on an android system (using Termux; may need modification depending on the android system). -# - clang: Use CLang rather than the default, which is generally GCC. -# - coverage: Compile for building coverage. -# - debug: Enable debugging, such as compile time debug options. -# - fanalyzer: Compile using GCC's -fanalyzer compile time option. -# - gcc: Use GCC specific settings. -# - gcc_13: Use GCC version 13 or greater specific settings. -# - test: Compile for a test, such as unit testing. -# - thread: Compile with thread support. -# - threadless: Compile without thread support. +# - android: Compile on an android system (using Termux; may need modification depending on the android system). +# - clang: Use CLang rather than the default, which is generally GCC. +# - coverage: Compile for building coverage. +# - debug: Enable debugging, such as compile time debug options. +# - fanalyzer: Compile using GCC's -fanalyzer compile time option. +# - flex_arrays: Use GCC strict flex arrays (supported by GCC version 13 or greater). +# - gcc: Use GCC specific settings. +# - test: Compile for a test, such as unit testing. +# - thread: Compile with thread support. +# - threadless: Compile without thread support. # build_name control @@ -27,7 +27,7 @@ version_micro 4 version_file micro version_target minor -modes android clang coverage debug fanalyzer gcc gcc_13 test thread threadless +modes android clang coverage debug fanalyzer flex_arrays gcc test thread threadless modes_default debug gcc thread build_compiler gcc @@ -115,7 +115,7 @@ flags-android -Wno-implicit-function-declaration -Wl,-z,norelro flags-clang -Wno-logical-op-parentheses flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags-fanalyzer -fanalyzer -flags-gcc_13 -fstrict-flex-arrays=3 +flags-flex_arrays -fstrict-flex-arrays=3 flags-test -O0 -fstack-protector-strong -Wall flags-thread -pthread