[all-commits] [llvm/llvm-project] 091fc8: [libc++][hardening] Check that `_LIBCPP_HARDENING_...

Konstantin Varlamov via All-commits all-commits at lists.llvm.org
Tue Feb 6 13:45:42 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 091fc81d485594d4b751c10518230769c905430c
      https://github.com/llvm/llvm-project/commit/091fc81d485594d4b751c10518230769c905430c
  Author: Konstantin Varlamov <varconsteq at gmail.com>
  Date:   2024-02-06 (Tue, 06 Feb 2024)

  Changed paths:
    M libcxx/include/__config

  Log Message:
  -----------
  [libc++][hardening] Check that `_LIBCPP_HARDENING_MODE_DEFAULT` is defined (#80353)

If the `_LIBCPP_HARDENING_MODE_DEFAULT` macro is not defined,
`_LIBCPP_HARDENING_MODE` will be considered defined but fail the check
for a valid hardening mode, resulting in a slightly less understandable
error (that error is really meant more to prevent users from passing
incorrect values such as `0` or `1` directly rather than catching
configuration issues).




More information about the All-commits mailing list