-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
96 lines (96 loc) · 2.92 KB
/
Copy pathCMakePresets.json
File metadata and controls
96 lines (96 loc) · 2.92 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20,
"patch": 0
},
"configurePresets": [
{
"name": "debug",
"displayName": "Debug",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS_INIT": "-O0 -g"
}
},
{
"name": "release",
"displayName": "Release",
"binaryDir": "${sourceDir}/build-release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_FLAGS_INIT": "-O3 -DNDEBUG"
}
},
{
"name": "relwithdebinfo",
"displayName": "RelWithDebInfo",
"binaryDir": "${sourceDir}/build-relwithdebinfo",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_CXX_FLAGS_INIT": "-O2 -g -DNDEBUG"
}
},
{
"name": "asan",
"displayName": "AddressSanitizer",
"binaryDir": "${sourceDir}/build-asan",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS_INIT": "-O1 -g -fsanitize=address -fno-omit-frame-pointer",
"CMAKE_EXE_LINKER_FLAGS_INIT": "-fsanitize=address",
"CMAKE_SHARED_LINKER_FLAGS_INIT": "-fsanitize=address"
}
},
{
"name": "ubsan",
"displayName": "UndefinedBehaviorSanitizer",
"binaryDir": "${sourceDir}/build-ubsan",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS_INIT": "-O1 -g -fsanitize=undefined -fno-omit-frame-pointer",
"CMAKE_EXE_LINKER_FLAGS_INIT": "-fsanitize=undefined",
"CMAKE_SHARED_LINKER_FLAGS_INIT": "-fsanitize=undefined"
}
},
{
"name": "tsan",
"displayName": "ThreadSanitizer",
"binaryDir": "${sourceDir}/build-tsan",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS_INIT": "-O1 -g -fsanitize=thread -fno-omit-frame-pointer",
"CMAKE_EXE_LINKER_FLAGS_INIT": "-fsanitize=thread",
"CMAKE_SHARED_LINKER_FLAGS_INIT": "-fsanitize=thread"
}
},
{
"name": "coverage",
"displayName": "Coverage (gcov/lcov)",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-coverage",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS_INIT": "-O0 -g --coverage -fprofile-arcs -ftest-coverage",
"CMAKE_EXE_LINKER_FLAGS_INIT": "--coverage",
"FM_ENABLE_COVERAGE": "ON"
}
},
{
"name": "mutation",
"displayName": "Mutation testing (mull-runner-cxx)",
"binaryDir": "${sourceDir}/build-mutation",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS_INIT": "-O0 -g -fembed-bitcode -flto=full",
"CMAKE_EXE_LINKER_FLAGS_INIT": "-flto=full",
"CMAKE_SHARED_LINKER_FLAGS_INIT": "-flto=full",
"FM_ENABLE_MUTATION": "ON"
}
}
]
}