From 7d932e9f7083269cca3211ffcab2dc6885630d46 Mon Sep 17 00:00:00 2001 From: Johannes Keller Date: Tue, 19 Nov 2024 15:17:52 +0100 Subject: [PATCH] SetBuildoptions: remove `-check all` from debug flags We are trying to fix the following problem and suspect that it comes from the `-check all` flags. ``` ==22279==WARNING: MemorySanitizer: use-of-uninitialized-value ``` In the future there could maybe be a more fine-grained handling of checks. --- cmake/SetBuildOptions.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/SetBuildOptions.cmake b/cmake/SetBuildOptions.cmake index 7416006..f2a9642 100644 --- a/cmake/SetBuildOptions.cmake +++ b/cmake/SetBuildOptions.cmake @@ -35,7 +35,7 @@ elseif(COMPILER STREQUAL "Intel" OR COMPILER STREQUAL "IntelLLVM") set(CMAKE_C_FLAGS_DEBUG "-O0 -g") set(CMAKE_C_FLAGS_RELEASE "-O2 -debug minimal") set(CMAKE_Fortran_FLAGS "-free -qno-opt-dynamic-align -ftz -traceback -convert big_endian -assume byterecl -assume realloc_lhs -fp-model source -qopenmp") - set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -g -fpe0 -check all") + set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -g -fpe0") #-check all set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -debug minimal") else() message(FATAL_ERROR "COMPILER='${COMPILER}' is not supported.")