-
Notifications
You must be signed in to change notification settings - Fork 41
/
CMakePresets.json
162 lines (160 loc) · 4.68 KB
/
CMakePresets.json
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 28,
"patch": 1
},
"configurePresets": [
{
"name": "msvc-ninja-asan",
"hidden": false,
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/${presetName}",
"cacheVariables": {
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe",
"CMAKE_BUILD_TYPE": "Debug"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"environment": {
"CFLAGS": "/EHsc /Zi /fsanitize=address",
"CXXFLAGS": "/EHsc /Zi /fsanitize=address"
}
},
{
"name": "clang-ninja-debug",
"hidden": false,
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "clang-ninja-release",
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "clang-ninja-asan",
"inherits": [ "clang-ninja-debug"],
"environment": {
"CFLAGS": "-fsanitize=address",
"CXXFLAGS": "-fsanitize=address"
}
},
{
"name": "clang-ninja-ubsan",
"inherits": [ "clang-ninja-debug"],
"environment": {
"CFLAGS": "-fsanitize=undefined",
"CXXFLAGS": "-fsanitize=undefined"
}
},
{
"name": "clang-ninja-msan",
"inherits": [ "clang-ninja-debug"],
"environment": {
"CFLAGS": "-fsanitize=memory",
"CXXFLAGS": "-fsanitize=memory"
}
},
{
"name": "clang-ninja-tsan",
"inherits": [ "clang-ninja-debug"],
"environment": {
"CFLAGS": "-fsanitize=thread",
"CXXFLAGS": "-fsanitize=thread"
}
},
{
"name": "clang-ninja-lsan",
"inherits": [ "clang-ninja-debug"],
"environment": {
"CFLAGS": "-fsanitize=leak",
"CXXFLAGS": "-fsanitize=leak"
}
},
{
"name": "clang-ninja-coverage",
"inherits": [ "clang-ninja-debug"],
"environment": {
"CFLAGS": "-fprofile-instr-generate -fcoverage-mapping",
"CXXFLAGS": "-fprofile-instr-generate -fcoverage-mapping"
}
}
],
"buildPresets": [
{
"name": "clang-ninja-debug",
"configurePreset": "clang-ninja-debug"
},
{
"name": "clang-ninja-release",
"configurePreset": "clang-ninja-release"
}
],
"testPresets": [
{
"name": "base-tests",
"hidden": true,
"output": {
"outputOnFailure": true,
"shortProgress": true
},
"execution": {
"jobs": 4
}
},
{
"name": "clang-ninja-debug",
"inherits": [ "base-tests" ],
"configurePreset": "clang-ninja-debug"
},
{
"name": "clang-ninja-release",
"inherits": [ "base-tests" ],
"configurePreset": "clang-ninja-release"
},
{
"name": "clang-ninja-asan",
"inherits": [ "base-tests" ],
"configurePreset": "clang-ninja-asan"
},
{
"name": "clang-ninja-ubsan",
"inherits": [ "base-tests" ],
"configurePreset": "clang-ninja-ubsan"
},
{
"name": "clang-ninja-msan",
"inherits": [ "base-tests" ],
"configurePreset": "clang-ninja-msan"
},
{
"name": "clang-ninja-tsan",
"inherits": [ "base-tests" ],
"configurePreset": "clang-ninja-tsan"
},
{
"name": "clang-ninja-lsan",
"inherits": [ "base-tests" ],
"configurePreset": "clang-ninja-lsan"
},
{
"name": "clang-ninja-coverage",
"inherits": [ "base-tests" ],
"configurePreset": "clang-ninja-coverage",
"environment": {
"LLVM_PROFILE_FILE": "coverage-%p.profraw"}
}
]
}