Skip to content

Commit

Permalink
Remove cf-protection=full on MacOS for C as well
Browse files Browse the repository at this point in the history
Commit 6640973 (Remove cf-protection in apple clang CMake preset,
2023-10-03, v0.37.3~1) removed this flag only for the shared variable,
but missed the one that is generated only for C++ projects.

This flag is not supported on ARM architecture.
  • Loading branch information
friendlyanon committed Mar 2, 2024
1 parent b9ad6ee commit a818e17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake-init/templates/common/CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"hidden": true,
"cacheVariables": {
"CMAKE_C{% if cpp %}XX{% end %}_FLAGS": "-fstack-protector-strong -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -Wcast-qual -Wformat=2 -Wundef -Werror=float-equal -Wshadow -Wcast-align -Wunused -Wnull-dereference -Wdouble-promotion -Wimplicit-fallthrough {% if c %}-Werror=strict-prototypes -Wwrite-strings{% if c90 %} -Werror=declaration-after-statement{% end %}{% else %}-Wextra-semi -Woverloaded-virtual -Wnon-virtual-dtor -Wold-style-cast{% end %}"{% if c and pm %},
"CMAKE_CXX_FLAGS": "-fstack-protector-strong -fcf-protection=full -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -Wcast-qual -Wformat=2 -Wundef -Werror=float-equal -Wshadow -Wcast-align -Wunused -Wnull-dereference -Wdouble-promotion -Wimplicit-fallthrough -Wextra-semi -Woverloaded-virtual -Wnon-virtual-dtor -Wold-style-cast"{% end %}
"CMAKE_CXX_FLAGS": "-fstack-protector-strong -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -Wcast-qual -Wformat=2 -Wundef -Werror=float-equal -Wshadow -Wcast-align -Wunused -Wnull-dereference -Wdouble-promotion -Wimplicit-fallthrough -Wextra-semi -Woverloaded-virtual -Wnon-virtual-dtor -Wold-style-cast"{% end %}
}
},
{
Expand Down

0 comments on commit a818e17

Please sign in to comment.