-
Notifications
You must be signed in to change notification settings - Fork 142
Expand file tree
/
Copy pathCMakePresets.json
More file actions
38 lines (38 loc) · 1.21 KB
/
CMakePresets.json
File metadata and controls
38 lines (38 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"version": 6,
"configurePresets": [
{
"name": "asan",
"displayName": "AddressSanitizer Build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS": "-fsanitize=address -fno-omit-frame-pointer -g",
"CMAKE_C_FLAGS": "-fsanitize=address -fno-omit-frame-pointer -g",
"CMAKE_LINKER_FLAGS": "-fsanitize=address"
},
"environment": {
"ASAN_OPTIONS": "detect_leaks=1:abort_on_error=1"
}
},
{
"name": "msan",
"displayName": "MemorySanitizer Build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS": "-fsanitize=memory -fno-omit-frame-pointer -g -O2",
"CMAKE_C_FLAGS": "-fsanitize=memory -fno-omit-frame-pointer -g -O2",
"CMAKE_LINKER_FLAGS": "-fsanitize=memory"
}
}
],
"buildPresets": [
{
"name": "asan",
"configurePreset": "asan"
},
{
"name": "msan",
"configurePreset": "msan"
}
]
}