From 755518f8020c0dd0047f24f80fd8a5c08a841d56 Mon Sep 17 00:00:00 2001 From: Max Moroz Date: Thu, 6 Jun 2019 07:44:27 -0700 Subject: [PATCH] [njs] Fix coverage build and exclude pcre sources from coverage report (#2481). --- projects/njs/build.sh | 2 +- projects/njs/project.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/njs/build.sh b/projects/njs/build.sh index 93f05790f..c7bc8d0c7 100755 --- a/projects/njs/build.sh +++ b/projects/njs/build.sh @@ -18,7 +18,7 @@ # Build pcre dependency to be linked statically. pushd $SRC/pcre ./autogen.sh -./configure +CFLAGS="$CFLAGS -fno-use-cxa-atexit" CXXFLAGS="$CXXFLAGS -fno-use-cxa-atexit" ./configure make -j$(nproc) clean make -j$(nproc) all popd diff --git a/projects/njs/project.yaml b/projects/njs/project.yaml index caf57d516..dc22a634c 100644 --- a/projects/njs/project.yaml +++ b/projects/njs/project.yaml @@ -6,3 +6,4 @@ sanitizers: - address - memory - undefined +coverage_extra_args: -ignore-filename-regex=.*/pcre/.*