build: don't bother with _LIBCPP_ENABLE_ASSERTIONS
See named-data/NFD@beb9e85b656019ce483ca2bd2091f24281531c0d
Change-Id: Ibade6c9622a11bed104e7c121338bec67e39751f
diff --git a/.jenkins.d/30-coverage.sh b/.jenkins.d/30-coverage.sh
index 18e1859..7663b6b 100755
--- a/.jenkins.d/30-coverage.sh
+++ b/.jenkins.d/30-coverage.sh
@@ -26,9 +26,9 @@
--capture \
--directory . \
--include "$PWD/src/*" \
- --ignore-errors count,inconsistent \
--branch-coverage \
--rc no_exception_branch=1 \
+ --ignore-errors inconsistent,mismatch,mismatch \
--output-file build/coverage.info
genhtml \
@@ -39,5 +39,6 @@
--missed \
--show-proportion \
--title "ndncert unit tests" \
+ --ignore-errors inconsistent,inconsistent \
--output-directory build/lcov \
build/coverage.info
diff --git a/.waf-tools/default-compiler-flags.py b/.waf-tools/default-compiler-flags.py
index 280165c..b1c2318 100644
--- a/.waf-tools/default-compiler-flags.py
+++ b/.waf-tools/default-compiler-flags.py
@@ -242,18 +242,14 @@
def getDebugFlags(self, conf):
flags = super().getDebugFlags(conf)
flags['CXXFLAGS'] += self.__cxxFlags
- ccver = get_compiler_ver(conf)
- darwin = Utils.unversioned_sys_platform() == 'darwin'
- # Enable assertions in libc++
- if (darwin and ccver >= (17, 0, 0)) or (not darwin and ccver >= (18, 0, 0)):
+ flags['DEFINES'] += [
+ # Enable assertions in libc++
# https://libcxx.llvm.org/Hardening.html
- flags['DEFINES'] += ['_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE']
- elif ccver >= (15, 0, 0):
- # https://releases.llvm.org/15.0.0/projects/libcxx/docs/UsingLibcxx.html#enabling-the-safe-libc-mode
- flags['DEFINES'] += ['_LIBCPP_ENABLE_ASSERTIONS=1']
- # Tell libc++ to avoid including transitive headers
- # https://libcxx.llvm.org/DesignDocs/HeaderRemovalPolicy.html
- flags['DEFINES'] += ['_LIBCPP_REMOVE_TRANSITIVE_INCLUDES=1']
+ '_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE',
+ # Disable transitive includes in libc++
+ # https://libcxx.llvm.org/DesignDocs/HeaderRemovalPolicy.html
+ '_LIBCPP_REMOVE_TRANSITIVE_INCLUDES=1',
+ ]
return flags
def getOptimizedFlags(self, conf):