Repository navigation
Expand file tree
/
Copy pathCMakePresets.json
More file actions
298 lines (298 loc) · 12.3 KB
/
Copy pathCMakePresets.json
File metadata and controls
298 lines (298 loc) · 12.3 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
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "conan-base",
"hidden": true,
"description": "Shared settings for all Conan-driven presets. Run `conan install . --output-folder=build/<preset-name> -s build_type=<Release|Debug> -s compiler.cppstd=17 --build=missing` for the matching preset name BEFORE running `cmake --preset <preset-name>`, so that build/<preset-name>/conan_toolchain.cmake exists.",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "linux-release",
"inherits": "conan-base",
"displayName": "Linux Release (Conan)",
"description": "conan install . --output-folder=build/linux-release -s build_type=Release -s compiler.cppstd=17 --build=missing",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build/linux-release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build/linux-release/conan_toolchain.cmake"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
},
{
"name": "linux-debug",
"inherits": "linux-release",
"displayName": "Linux Debug (Conan)",
"description": "conan install . --output-folder=build/linux-debug -s build_type=Debug -s compiler.cppstd=17 --build=missing",
"binaryDir": "${sourceDir}/build/linux-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build/linux-debug/conan_toolchain.cmake"
}
},
{
"name": "linux-release-asan",
"inherits": "linux-release",
"displayName": "Linux Release + AddressSanitizer",
"description": "conan install . --output-folder=build/linux-release-asan -s build_type=Debug -s compiler.cppstd=17 --build=missing. Sanitizers are applied via cmake/Sanitizers.cmake (GCC/Clang only, Debug recommended).",
"binaryDir": "${sourceDir}/build/linux-release-asan",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build/linux-release-asan/conan_toolchain.cmake",
"FULLA_SANITIZER": "address"
}
},
{
"name": "linux-release-tsan",
"inherits": "linux-release",
"displayName": "Linux Release + ThreadSanitizer",
"description": "conan install . --output-folder=build/linux-release-tsan -s build_type=Debug -s compiler.cppstd=17 --build=missing. Sanitizers are applied via cmake/Sanitizers.cmake (GCC/Clang only, Debug recommended).",
"binaryDir": "${sourceDir}/build/linux-release-tsan",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build/linux-release-tsan/conan_toolchain.cmake",
"FULLA_SANITIZER": "thread"
}
},
{
"name": "linux-asan-ubsan",
"inherits": "linux-release",
"displayName": "Linux ASan + UBSan (CI gate)",
"description": "conan install . --output-folder=build/linux-asan-ubsan -s build_type=Debug -s compiler.cppstd=17 --build=missing. ASan+UBSan compose on GCC/Clang; UBSan runs with -fno-sanitize-recover (UB aborts). Instruments every first-party lib + the test binary (#104).",
"binaryDir": "${sourceDir}/build/linux-asan-ubsan",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build/linux-asan-ubsan/conan_toolchain.cmake",
"FULLA_SANITIZER": "address,undefined"
}
},
{
"name": "linux-coverage",
"inherits": "linux-release",
"displayName": "Linux gcov coverage build",
"description": "conan install . --output-folder=build/linux-coverage -s build_type=Debug -s compiler.cppstd=17 --build=missing. FULLA_TEST_COVERAGE instruments first-party libs; after ctest run gcov to emit *.gcov.json.gz then scripts/measure_coverage.py (#105).",
"binaryDir": "${sourceDir}/build/linux-coverage",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build/linux-coverage/conan_toolchain.cmake",
"FULLA_TEST_COVERAGE": "ON"
}
},
{
"name": "linux-release-lto",
"inherits": "linux-release",
"displayName": "Linux Release + LTO (Conan)",
"description": "conan install . --output-folder=build/linux-release-lto -s build_type=Release -s compiler.cppstd=17 --build=missing. Opt-in LTO arm (FULLA_ENABLE_LTO=ON via cmake/Lto.cmake); used by the bench-image build with FULLA_CMAKE_PRESET=linux-release-lto. Default presets are unaffected.",
"binaryDir": "${sourceDir}/build/linux-release-lto",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build/linux-release-lto/conan_toolchain.cmake",
"FULLA_ENABLE_LTO": "ON"
}
},
{
"name": "windows-msvc",
"inherits": "conan-base",
"displayName": "Windows MSVC (Conan)",
"description": "conan install . --output-folder=build/windows-msvc -s build_type=Release -s compiler.cppstd=17 --build=missing",
"generator": "Visual Studio 17 2022",
"architecture": {
"value": "x64",
"strategy": "set"
},
"binaryDir": "${sourceDir}/build/windows-msvc",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build/windows-msvc/conan_toolchain.cmake",
"CMAKE_POLICY_DEFAULT_CMP0091": "NEW"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "windows-msvc-debug",
"inherits": "windows-msvc",
"displayName": "Windows MSVC Debug (Conan)",
"description": "conan install . --output-folder=build/windows-msvc-debug -s build_type=Debug -s compiler.cppstd=17 --build=missing. Visual Studio is a multi-config generator; build with --config Debug.",
"binaryDir": "${sourceDir}/build/windows-msvc-debug",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build/windows-msvc-debug/conan_toolchain.cmake",
"CMAKE_POLICY_DEFAULT_CMP0091": "NEW"
}
},
{
"name": "windows-msvc-asan",
"inherits": "windows-msvc",
"displayName": "Windows MSVC + AddressSanitizer",
"description": "conan install . --output-folder=build/windows-msvc-asan -s build_type=Debug -s compiler.cppstd=17 --build=missing. NOTE: cmake/Sanitizers.cmake currently only implements GCC/Clang -fsanitize flags; on real MSVC this preset configures and builds but emits a CMake WARNING and does NOT instrument the binary (no functional sanitizer yet).",
"binaryDir": "${sourceDir}/build/windows-msvc-asan",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build/windows-msvc-asan/conan_toolchain.cmake",
"CMAKE_POLICY_DEFAULT_CMP0091": "NEW",
"FULLA_SANITIZER": "address"
}
},
{
"name": "windows-msvc-tsan",
"inherits": "windows-msvc",
"displayName": "Windows MSVC + ThreadSanitizer",
"description": "conan install . --output-folder=build/windows-msvc-tsan -s build_type=Debug -s compiler.cppstd=17 --build=missing. NOTE: MSVC has no ThreadSanitizer runtime; cmake/Sanitizers.cmake emits a CMake WARNING and does NOT instrument the binary. Prefer linux-release-tsan or macos-arm64-tsan for real TSan coverage.",
"binaryDir": "${sourceDir}/build/windows-msvc-tsan",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build/windows-msvc-tsan/conan_toolchain.cmake",
"CMAKE_POLICY_DEFAULT_CMP0091": "NEW",
"FULLA_SANITIZER": "thread"
}
},
{
"name": "windows-msvc-lto",
"inherits": "windows-msvc",
"displayName": "Windows MSVC + LTO (Conan)",
"description": "conan install . --output-folder=build/windows-msvc-lto -s build_type=Release -s compiler.cppstd=17 --build=missing. Opt-in LTO arm (FULLA_ENABLE_LTO=ON via cmake/Lto.cmake) — local compilability/ctest validation of the LTO configuration; the benchmark binary is Linux GCC.",
"binaryDir": "${sourceDir}/build/windows-msvc-lto",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build/windows-msvc-lto/conan_toolchain.cmake",
"CMAKE_POLICY_DEFAULT_CMP0091": "NEW",
"FULLA_ENABLE_LTO": "ON"
}
},
{
"name": "macos-arm64",
"inherits": "conan-base",
"displayName": "macOS arm64 Release (Conan)",
"description": "conan install . --output-folder=build/macos-arm64 -s build_type=Release -s compiler.cppstd=17 -s arch=armv8 --build=missing",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build/macos-arm64",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_OSX_ARCHITECTURES": "arm64",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build/macos-arm64/conan_toolchain.cmake"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
}
},
{
"name": "macos-arm64-debug",
"inherits": "macos-arm64",
"displayName": "macOS arm64 Debug (Conan)",
"description": "conan install . --output-folder=build/macos-arm64-debug -s build_type=Debug -s compiler.cppstd=17 -s arch=armv8 --build=missing",
"binaryDir": "${sourceDir}/build/macos-arm64-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build/macos-arm64-debug/conan_toolchain.cmake"
}
},
{
"name": "macos-arm64-asan",
"inherits": "macos-arm64",
"displayName": "macOS arm64 + AddressSanitizer",
"description": "conan install . --output-folder=build/macos-arm64-asan -s build_type=Debug -s compiler.cppstd=17 -s arch=armv8 --build=missing. Sanitizers are applied via cmake/Sanitizers.cmake (GCC/Clang only, Debug recommended).",
"binaryDir": "${sourceDir}/build/macos-arm64-asan",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build/macos-arm64-asan/conan_toolchain.cmake",
"FULLA_SANITIZER": "address"
}
},
{
"name": "macos-arm64-tsan",
"inherits": "macos-arm64",
"displayName": "macOS arm64 + ThreadSanitizer",
"description": "conan install . --output-folder=build/macos-arm64-tsan -s build_type=Debug -s compiler.cppstd=17 -s arch=armv8 --build=missing. Sanitizers are applied via cmake/Sanitizers.cmake (GCC/Clang only, Debug recommended).",
"binaryDir": "${sourceDir}/build/macos-arm64-tsan",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build/macos-arm64-tsan/conan_toolchain.cmake",
"FULLA_SANITIZER": "thread"
}
}
],
"buildPresets": [
{
"name": "linux-release",
"configurePreset": "linux-release"
},
{
"name": "linux-debug",
"configurePreset": "linux-debug"
},
{
"name": "linux-release-asan",
"configurePreset": "linux-release-asan"
},
{
"name": "linux-release-tsan",
"configurePreset": "linux-release-tsan"
},
{
"name": "linux-asan-ubsan",
"configurePreset": "linux-asan-ubsan"
},
{
"name": "linux-coverage",
"configurePreset": "linux-coverage"
},
{
"name": "linux-release-lto",
"configurePreset": "linux-release-lto"
},
{
"name": "windows-msvc",
"configurePreset": "windows-msvc",
"configuration": "Release"
},
{
"name": "windows-msvc-debug",
"configurePreset": "windows-msvc-debug",
"configuration": "Debug"
},
{
"name": "windows-msvc-asan",
"configurePreset": "windows-msvc-asan",
"configuration": "Debug"
},
{
"name": "windows-msvc-tsan",
"configurePreset": "windows-msvc-tsan",
"configuration": "Debug"
},
{
"name": "windows-msvc-lto",
"configurePreset": "windows-msvc-lto",
"configuration": "Release"
},
{
"name": "macos-arm64",
"configurePreset": "macos-arm64"
},
{
"name": "macos-arm64-debug",
"configurePreset": "macos-arm64-debug"
},
{
"name": "macos-arm64-asan",
"configurePreset": "macos-arm64-asan"
},
{
"name": "macos-arm64-tsan",
"configurePreset": "macos-arm64-tsan"
}
]
}