]> Kevux Git Server - kevux-firewall/commitdiff
Refactor: Build mode gcc_13 to flex_arrays to provide a more generic name.
authorKevin Day <Kevin@kevux.org>
Wed, 10 Dec 2025 04:25:05 +0000 (22:25 -0600)
committerKevin Day <Kevin@kevux.org>
Wed, 10 Dec 2025 04:25:05 +0000 (22:25 -0600)
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`.

data/build/fakefile
data/build/settings
data/build/stand_alone/fakefile
data/build/stand_alone/settings.firewall

index ef752143450ef2f7539322caa560ff7d6f340247..2e14b9c53302ebc209dcd8f0650f3fac7378b494 100644 (file)
@@ -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
index 103215ebc82d319f1e85b8ff9a03338e8fbcec06..c64c2dee3e0b391364dde88ff009a32bb318241e 100644 (file)
@@ -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 fanalyzer gcc gcc_13 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
index faf75182922fc3102fea1f67bd34d9a4239a5643..a1a84eaa8d7ef9ac7d610f7d9fa6b8f0cf32e6f9 100644 (file)
@@ -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
index 903441346a25c8a9fccf9cb43d9d4289051f94d2..6fc95d5341b46d96213a29371f4a70d5196dd78d 100644 (file)
@@ -6,16 +6,16 @@
 #   fake -s data/build/stand_alone/settings.firewall 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 firewall
@@ -27,7 +27,7 @@ version_micro 0
 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
@@ -128,7 +128,7 @@ flags -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now
 flags-android -Wno-implicit-function-declaration -Wl,-z,norelro
 flags-clang -Wno-logical-op-parentheses
 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