Skip to content

Commit

Permalink
SetBuildoptions: remove -check all from debug flags
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jjokella committed Nov 19, 2024
1 parent c9f3348 commit 7d932e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/SetBuildOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 7d932e9

Please sign in to comment.