Skip to content

compilerDefinitions.cmake: fixed typo in if condition#8709

Open
firewave wants to merge 1 commit into
cppcheck-opensource:mainfrom
firewave:cmake-libcxx
Open

compilerDefinitions.cmake: fixed typo in if condition#8709
firewave wants to merge 1 commit into
cppcheck-opensource:mainfrom
firewave:cmake-libcxx

Conversation

@firewave

@firewave firewave commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

fixes compiler error with libc++ on recent clang versions:

/usr/bin/../include/c++/v1/__configuration/hardening.h:25:4: error: "_LIBCPP_ENABLE_ASSERTIONS has been removed, please use _LIBCPP_HARDENING_MODE=<mode> instead (see docs)"
   25 | #  error "_LIBCPP_ENABLE_ASSERTIONS has been removed, please use _LIBCPP_HARDENING_MODE=<mode> instead (see docs)"
      |    ^

fixes compiler error with libc++ on recent clang version:

```
/usr/bin/../include/c++/v1/__configuration/hardening.h:25:4: error: "_LIBCPP_ENABLE_ASSERTIONS has been removed, please use _LIBCPP_HARDENING_MODE=<mode> instead (see docs)"
   25 | #  error "_LIBCPP_ENABLE_ASSERTIONS has been removed, please use _LIBCPP_HARDENING_MODE=<mode> instead (see docs)"
      |    ^
```
@firewave

firewave commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator Author

I am curious how CMake even accepted this. Possibly needs an upstream ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant