From: Kevin Day Date: Sun, 25 Feb 2024 16:30:29 +0000 (-0600) Subject: Update: Disable -fstrict-flex-arrays=3 flag because it doesn't work on GCC 11. X-Git-Tag: 0.7.1~89 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=2f35f86e1ed12f9dde95ffa2d4cf00107050f61e;p=kevux-tools Update: Disable -fstrict-flex-arrays=3 flag because it doesn't work on GCC 11. I just did tests on GCC 11, which is not too old. The -fstrict-flex-arrays flag does not work there. For now, just disable the flag by setting it to the non-existent gcc_13 mode. The mode can be added to the mode list and enabled if so desired. I may make version specific modes available in the future (or not) but that will require some planning. The fakefile should be designed to test the GCC version, but I would rather avoid such logic by design. Let the distributor or the system administrator handle such decisions. --- diff --git a/data/build/remove/settings b/data/build/remove/settings index 04d41d2..0474129 100644 --- a/data/build/remove/settings +++ b/data/build/remove/settings @@ -84,7 +84,7 @@ flags -D_FORTIFY_SOURCE=3 flags -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now flags-thread -pthread flags-clang -Wno-logical-op-parentheses -flags-gcc -fstrict-flex-arrays=3 +flags-gcc_13 -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/tacocat/settings b/data/build/tacocat/settings index f87f7f4..91e2de2 100644 --- a/data/build/tacocat/settings +++ b/data/build/tacocat/settings @@ -86,7 +86,7 @@ flags -D_FORTIFY_SOURCE=3 flags -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now flags-thread -pthread flags-clang -Wno-logical-op-parentheses -flags-gcc -fstrict-flex-arrays=3 +flags-gcc_13 -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/