From: Kevin Day Date: Wed, 10 Dec 2025 04:25:23 +0000 (-0600) Subject: Refactor: Build mode gcc_13 to flex_arrays to provide a more generic name. X-Git-Tag: 0.7.4~12 X-Git-Url: https://www.git.kevux.org/?a=commitdiff_plain;h=af7581ea42e056b5830ecaa7da545592d10ac6e0;p=controller 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 6e9a2d1..6b3991e 100644 --- a/data/build/fakefile +++ b/data/build/fakefile @@ -2,7 +2,7 @@ settings: fail exit - modes individual individual_thread level monolithic clang gcc gcc_13 test fanalyzer coverage 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 6e74b8f..f4215c0 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 @@ -125,7 +125,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.controller b/data/build/settings.controller index 2f93e9e..4935125 100644 --- a/data/build/settings.controller +++ b/data/build/settings.controller @@ -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 @@ -86,7 +86,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.init b/data/build/settings.init index 78e973f..d8f3b47 100644 --- a/data/build/settings.init +++ b/data/build/settings.init @@ -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 @@ -86,7 +86,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 d7ebded..a381bef 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.controller b/data/build/stand_alone/settings.controller index 555b3c7..6b0d0fd 100644 --- a/data/build/stand_alone/settings.controller +++ b/data/build/stand_alone/settings.controller @@ -6,16 +6,16 @@ # fake -s data/build/stand_alone/settings.controller 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 controller @@ -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 @@ -149,7 +149,7 @@ flags -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now flags-android -Wno-implicit-function-declaration -Wl,-z,norelro flags-thread -pthread flags-clang -Wno-logical-op-parentheses -flags-gcc_13 -fstrict-flex-arrays=3 +flags-flex_arrays -fstrict-flex-arrays=3 flags-test -O0 -fstack-protector-strong -Wall flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ diff --git a/data/build/stand_alone/settings.init b/data/build/stand_alone/settings.init index 9fe7d87..5050cfc 100644 --- a/data/build/stand_alone/settings.init +++ b/data/build/stand_alone/settings.init @@ -6,16 +6,16 @@ # fake -s data/build/stand_alone/settings.init 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 init @@ -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 @@ -149,7 +149,7 @@ flags -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now flags-android -Wno-implicit-function-declaration -Wl,-z,norelro flags-thread -pthread flags-clang -Wno-logical-op-parentheses -flags-gcc_13 -fstrict-flex-arrays=3 +flags-flex_arrays -fstrict-flex-arrays=3 flags-test -O0 -fstack-protector-strong -Wall flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/