summaryrefslogtreecommitdiffstats
path: root/config/sanitizer
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-07-11 20:59:52 (GMT)
committerGitHub <noreply@github.com>2022-07-11 20:59:52 (GMT)
commitb9d1d66ab84b492691d3c73e71b1374a7da19e50 (patch)
tree91094aab994ae89fa356bd926726b3909f86d58e /config/sanitizer
parent663321087a73e760a028517584731eb8ef308ba2 (diff)
downloadhdf5-b9d1d66ab84b492691d3c73e71b1374a7da19e50.zip
hdf5-b9d1d66ab84b492691d3c73e71b1374a7da19e50.tar.gz
hdf5-b9d1d66ab84b492691d3c73e71b1374a7da19e50.tar.bz2
Develop HDFFV-11310 (#1811)
* Rework java vl check in read/write. Handle old refs in h5dump * Committing clang-format changes * Java changes allow default VL reads * Fix JNI utility for old refs * HDFFV-11310 - implement vlen read/write for atomic types. * format check fix * Mostly format fixes * More format issues * Two format changes * Use JNI names for sizeof * format change * fix size typo * Change to older method to initialize list * remove unused var * format fix * switch writeVL functions to use datatype instead of java type * Add VL option to generic read/write check * Correct function name typo * Add JIRA issue * Correct note to match change in code. * HDFFV-11318 add VL references as byte arrays * Add release note and format changes * Another format update * Fix unreleased allocations * Fix format * format correction Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'config/sanitizer')
-rw-r--r--config/sanitizer/code-coverage.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/config/sanitizer/code-coverage.cmake b/config/sanitizer/code-coverage.cmake
index e71bfd7..3a99024 100644
--- a/config/sanitizer/code-coverage.cmake
+++ b/config/sanitizer/code-coverage.cmake
@@ -214,7 +214,7 @@ function(target_code_coverage TARGET_NAME)
# Add code coverage instrumentation to the target's linker command
if(CMAKE_C_COMPILER_ID MATCHES "[Cc]lang" OR CMAKE_CXX_COMPILER_ID MATCHES "[Cc]lang")
target_compile_options(${TARGET_NAME} PRIVATE -fprofile-instr-generate
- -fcoverage-mapping)
+ -fcoverage-mapping --coverage)
set_property(
TARGET ${TARGET_NAME}
APPEND_STRING
@@ -225,7 +225,7 @@ function(target_code_coverage TARGET_NAME)
PROPERTY LINK_FLAGS "-fcoverage-mapping ")
elseif(CMAKE_C_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
target_compile_options(${TARGET_NAME} PRIVATE -fprofile-arcs
- -ftest-coverage)
+ -ftest-coverage --coverage)
target_link_libraries(${TARGET_NAME} PRIVATE gcov)
endif()
@@ -413,10 +413,10 @@ endfunction()
# use `target_code_coverage`.
function(add_code_coverage)
if(CMAKE_C_COMPILER_ID MATCHES "[Cc]lang" OR CMAKE_CXX_COMPILER_ID MATCHES "[Cc]lang")
- add_compile_options(-fprofile-instr-generate -fcoverage-mapping)
- add_link_options(-fprofile-instr-generate -fcoverage-mapping)
+ add_compile_options(-fprofile-instr-generate -fcoverage-mapping --coverage)
+ add_link_options(-fprofile-instr-generate -fcoverage-mapping --coverage)
elseif(CMAKE_C_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
- add_compile_options(-fprofile-arcs -ftest-coverage)
+ add_compile_options(-fprofile-arcs -ftest-coverage --coverage)
link_libraries(gcov)
endif()
endfunction()