Skip to content
Snippets Groups Projects
Unverified Commit 2abc5d5b authored by Lars Bilke's avatar Lars Bilke
Browse files

[cmake,ci] Added new CMake preset 'sanitizer'.

parent f0096cdb
No related branches found
No related tags found
No related merge requests found
...@@ -215,6 +215,27 @@ ...@@ -215,6 +215,27 @@
"OGS_USE_MFRONT": "ON", "OGS_USE_MFRONT": "ON",
"BUILD_SHARED_LIBS": "ON" "BUILD_SHARED_LIBS": "ON"
} }
},
{
"name": "sanitizer",
"inherits": "debug-all",
"cacheVariables": {
"BUILD_SHARED_LIBS": "ON",
"OGS_CXX_FLAGS": "-O3;-fno-var-tracking",
"OGS_EIGEN_DYNAMIC_SHAPE_MATRICES": "OFF",
"ENABLE_ASAN": "ON",
"ENABLE_UBSAN": "ON",
"ENABLE_LSAN": "ON",
"OGS_BUILD_TFEL": "ON",
"OGS_BUILD_VTK": "ON",
"OGS_BUILD_HDF5": "ON"
},
"environment": {
"CC": "clang",
"CXX": "clang++",
"UBSAN_OPTIONS": "print_stacktrace=1",
"LSAN_OPTIONS": "suppressions=${sourceDir}/scripts/test/leak_sanitizer.suppressions"
}
} }
], ],
"buildPresets": [ "buildPresets": [
...@@ -314,6 +335,10 @@ ...@@ -314,6 +335,10 @@
{ {
"name": "wheel", "name": "wheel",
"configurePreset": "wheel" "configurePreset": "wheel"
},
{
"name": "sanitizer",
"configurePreset": "sanitizer"
} }
], ],
"testPresets": [ "testPresets": [
...@@ -326,6 +351,9 @@ ...@@ -326,6 +351,9 @@
"filter": { "filter": {
"include": { "include": {
"label": "default" "label": "default"
},
"exclude": {
"name": "nb-"
} }
}, },
"execution": { "execution": {
...@@ -403,6 +431,13 @@ ...@@ -403,6 +431,13 @@
"inherits": [ "inherits": [
"release" "release"
] ]
},
{
"name": "sanitizer",
"configurePreset": "sanitizer",
"inherits": [
"release"
]
} }
] ]
} }
...@@ -50,23 +50,10 @@ build linux debug with sanitizers: ...@@ -50,23 +50,10 @@ build linux debug with sanitizers:
needs: [meta] needs: [meta]
variables: variables:
BUILD_PACKAGE: "false" BUILD_PACKAGE: "false"
CMAKE_PRESET: debug CMAKE_PRESET: sanitizer
CMAKE_ARGS: >- CMAKE_ARGS: >-
-DCMAKE_C_COMPILER=/usr/bin/clang -DOGS_CTEST_MAX_RUNTIME=60
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DOGS_BUILD_PROCESSES=SteadyStateDiffusion
-DBUILD_SHARED_LIBS=ON
-DOGS_CXX_FLAGS=-O3;-fno-var-tracking
-DOGS_EIGEN_DYNAMIC_SHAPE_MATRICES=OFF
-DENABLE_ASAN=ON
-DENABLE_UBSAN=ON
-DENABLE_LSAN=ON
-DOGS_CTEST_MAX_RUNTIME=5
-DOGS_USE_PIP=ON
-DOGS_USE_MFRONT=ON
-DOGS_BUILD_TFEL=ON
UBSAN_OPTIONS: "print_stacktrace=1"
LSAN_OPTIONS: "suppressions=$CI_PROJECT_DIR/scripts/test/leak_sanitizer.suppressions"
CTEST_TIMEOUT: 120
build linux ubuntu perf: build linux ubuntu perf:
extends: extends:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment