[libcxx-commits] [PATCH] D128115: [libc++][ranges] Implement modifying heap algorithms:
Konstantin Varlamov via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jul 2 15:51:02 PDT 2022
var-const added inline comments.
================
Comment at: libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/pop.heap/assert.pop_heap.pass.cpp:10
+// REQUIRES: has-unix-headers
+// UNSUPPORTED: !libcpp-has-debug-mode
+// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_ASSERTIONS=1
----------------
ldionne wrote:
> This is not needed -- we support basic assertions even when the "debug" mode is disabled.
>
> It's kind of messy right now (I'm in the process of cleaning that up), but basically Debug Mode = heavyweight checks that change ABI and/or complexity, and Assertions = lightweight checks that don't impact ABI/complexity.
>
> Debug Mode implies Assertions, but not the other way around. Here you only need to turn Assertions on with `_LIBCPP_ENABLE_ASSERTIONS=1` to test this.
>
> This comment applies to the other `assert.FOO` tests.
Thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128115/new/
https://reviews.llvm.org/D128115
More information about the libcxx-commits
mailing list