|
22 | 22 | "REPRODUCIBILITY_LINKER_FLAGS": "", |
23 | 23 | "CFLAGS": "$penv{CFLAGS} $env{PLATFORM_C_FLAGS} $env{COMPILER_C_FLAGS} $env{COVERAGE_FLAGS} $env{SANITIZER_FLAGS} $env{REPRODUCIBILITY_COMMON_FLAGS}", |
24 | 24 | "CXXFLAGS": "$penv{CXXFLAGS} $env{PLATFORM_CXX_FLAGS} $env{COMPILER_CXX_FLAGS} $env{COVERAGE_FLAGS} $env{SANITIZER_FLAGS} $env{REPRODUCIBILITY_COMMON_FLAGS}", |
25 | | - "LDFLAGS": "$env{PLATFORM_LINKER_FLAGS} $env{SANITIZER_FLAGS} $env{REPRODUCIBILITY_LINKER_FLAGS} $env{REPRODUCIBILITY_LINKER_FLAGS}" |
| 25 | + "LDFLAGS": "$env{PLATFORM_LINKER_FLAGS} $env{SANITIZER_FLAGS} $env{SANITIZER_LINKER_FLAGS} $env{REPRODUCIBILITY_LINKER_FLAGS} $env{REPRODUCIBILITY_LINKER_FLAGS}" |
26 | 26 | }, |
27 | 27 | "architecture": { |
28 | 28 | "value": "x64", |
|
120 | 120 | { |
121 | 121 | "name": "unix-sanitizer", |
122 | 122 | "environment": { |
123 | | - "SANITIZER_FLAGS": "-fsanitize=address" |
| 123 | + "SANITIZER_FLAGS": "-fstack-protector -fsanitize=address,pointer-compare,undefined -fno-sanitize-recover" |
124 | 124 | }, |
125 | 125 | "inherits": "unix-base", |
126 | 126 | "hidden": true |
|
148 | 148 | { |
149 | 149 | "name": "msvc-debug", |
150 | 150 | "displayName": "Debug (MSVC)", |
| 151 | + "environment": { |
| 152 | + "SANITIZER_FLAGS": "/RTC1" |
| 153 | + }, |
151 | 154 | "inherits": ["msvc-base", "debug"] |
152 | 155 | }, |
153 | 156 | { |
|
166 | 169 | "inherits": ["clang-cl-base", "relwithdebinfo"] |
167 | 170 | }, |
168 | 171 | { |
169 | | - "name": "clang-base", |
| 172 | + "name": "clang-linux-base", |
170 | 173 | "cacheVariables": { |
171 | 174 | "CMAKE_C_COMPILER": "clang", |
172 | 175 | "CMAKE_CXX_COMPILER": "clang++" |
173 | 176 | }, |
| 177 | + "environment": { |
| 178 | + "SANITIZER_LINKER_FLAGS": "-lubsan" |
| 179 | + }, |
| 180 | + "condition": { |
| 181 | + "type": "notEquals", |
| 182 | + "lhs": "${hostSystemName}", |
| 183 | + "rhs": "Darwin" |
| 184 | + }, |
| 185 | + "inherits": "unix-sanitizer", |
| 186 | + "hidden": true |
| 187 | + }, |
| 188 | + { |
| 189 | + "name": "apple-clang-base", |
| 190 | + "cacheVariables": { |
| 191 | + "CMAKE_C_COMPILER": "clang", |
| 192 | + "CMAKE_CXX_COMPILER": "clang++" |
| 193 | + }, |
| 194 | + "condition": { |
| 195 | + "type": "equals", |
| 196 | + "lhs": "${hostSystemName}", |
| 197 | + "rhs": "Darwin" |
| 198 | + }, |
174 | 199 | "inherits": "unix-sanitizer", |
175 | 200 | "hidden": true |
176 | 201 | }, |
177 | 202 | { |
178 | 203 | "name": "clang-debug", |
179 | | - "inherits": ["debug", "clang-base"] |
| 204 | + "inherits": ["debug", "clang-linux-base"] |
180 | 205 | }, |
181 | 206 | { |
182 | 207 | "name": "clang-release", |
183 | | - "inherits": ["relwithdebinfo", "clang-base"] |
| 208 | + "inherits": ["relwithdebinfo", "clang-linux-base"] |
| 209 | + }, |
| 210 | + { |
| 211 | + "name": "apple-clang-debug", |
| 212 | + "inherits": ["debug", "apple-clang-base"] |
| 213 | + }, |
| 214 | + { |
| 215 | + "name": "apple-clang-release", |
| 216 | + "inherits": ["relwithdebinfo", "apple-clang-base"] |
184 | 217 | }, |
185 | 218 | { |
186 | 219 | "name": "clang-tidy-debug", |
|
203 | 236 | { |
204 | 237 | "name": "gcc-base", |
205 | 238 | "environment": { |
206 | | - "COMPILER_CXX_FLAGS": "$env{COMPILER_C_FLAGS} -Wno-maybe-uninitialized" |
| 239 | + "COMPILER_CXX_FLAGS": "$env{COMPILER_C_FLAGS} -Wno-maybe-uninitialized", |
| 240 | + "SANITIZER_LINKER_FLAGS": "-static-libubsan" |
207 | 241 | }, |
208 | 242 | "cacheVariables": { |
209 | 243 | "CMAKE_C_COMPILER": "gcc", |
210 | 244 | "CMAKE_CXX_COMPILER": "g++" |
211 | 245 | }, |
212 | 246 | "inherits": "unix-sanitizer", |
| 247 | + "condition": { |
| 248 | + "type": "notEquals", |
| 249 | + "lhs": "${hostSystemName}", |
| 250 | + "rhs": "Darwin" |
| 251 | + }, |
213 | 252 | "hidden": true |
214 | 253 | }, |
215 | 254 | { |
|
231 | 270 | "CMAKE_INTERPROCEDURAL_OPTIMIZATION": "TRUE" |
232 | 271 | } |
233 | 272 | }, |
| 273 | + { |
| 274 | + "name": "ci-apple-clang-debug", |
| 275 | + "inherits": ["apple-clang-debug", "unix-coverage"] |
| 276 | + }, |
| 277 | + { |
| 278 | + "name": "ci-apple-clang-release", |
| 279 | + "inherits": "apple-clang-release", |
| 280 | + "cacheVariables": { |
| 281 | + "CMAKE_INTERPROCEDURAL_OPTIMIZATION": "TRUE" |
| 282 | + } |
| 283 | + }, |
234 | 284 | { |
235 | 285 | "name": "ci-gcc-debug", |
236 | 286 | "environment": { |
|
250 | 300 | }, |
251 | 301 | { |
252 | 302 | "name": "ci-sonar", |
253 | | - "inherits": ["clang-base", "debug", "unix-coverage"] |
| 303 | + "inherits": ["clang-linux-base", "debug", "unix-coverage"] |
254 | 304 | }, |
255 | 305 | { |
256 | 306 | "name": "ci-clang-tidy-debug", |
|
293 | 343 | }, |
294 | 344 | { |
295 | 345 | "name": "ci-clang-reproducible", |
296 | | - "inherits": ["clang-base", "release"], |
| 346 | + "inherits": ["clang-linux-base", "release"], |
297 | 347 | "environment": { |
298 | 348 | "REPRODUCIBILITY_COMMON_FLAGS": "$penv{REPRODUCIBILITY_COMMON_FLAGS} -frandom-seed=0 -Wdate-time" |
299 | 349 | }, |
|
336 | 386 | "name": "clang-release", |
337 | 387 | "configurePreset": "clang-release" |
338 | 388 | }, |
| 389 | + { |
| 390 | + "name": "apple-clang-debug", |
| 391 | + "configurePreset": "apple-clang-debug" |
| 392 | + }, |
| 393 | + { |
| 394 | + "name": "apple-clang-release", |
| 395 | + "configurePreset": "apple-clang-release" |
| 396 | + }, |
339 | 397 | { |
340 | 398 | "name": "clang-tidy-debug", |
341 | 399 | "configurePreset": "clang-tidy-debug" |
|
368 | 426 | "name": "ci-clang-release", |
369 | 427 | "configurePreset": "ci-clang-release" |
370 | 428 | }, |
| 429 | + { |
| 430 | + "name": "ci-apple-clang-debug", |
| 431 | + "configurePreset": "ci-apple-clang-debug" |
| 432 | + }, |
| 433 | + { |
| 434 | + "name": "ci-apple-clang-release", |
| 435 | + "configurePreset": "ci-apple-clang-release" |
| 436 | + }, |
371 | 437 | { |
372 | 438 | "name": "ci-gcc-debug", |
373 | 439 | "configurePreset": "ci-gcc-debug" |
|
434 | 500 | "name": "clang-release", |
435 | 501 | "configurePreset": "clang-release" |
436 | 502 | }, |
| 503 | + { |
| 504 | + "name": "apple-clang-debug", |
| 505 | + "configurePreset": "apple-clang-debug" |
| 506 | + }, |
| 507 | + { |
| 508 | + "name": "apple-clang-release", |
| 509 | + "configurePreset": "apple-clang-release" |
| 510 | + }, |
437 | 511 | { |
438 | 512 | "name": "clang-tidy-debug", |
439 | 513 | "configurePreset": "clang-tidy-debug" |
|
466 | 540 | "name": "ci-clang-release", |
467 | 541 | "configurePreset": "ci-clang-release" |
468 | 542 | }, |
| 543 | + { |
| 544 | + "name": "ci-apple-clang-debug", |
| 545 | + "configurePreset": "ci-apple-clang-debug" |
| 546 | + }, |
| 547 | + { |
| 548 | + "name": "ci-apple-clang-release", |
| 549 | + "configurePreset": "ci-apple-clang-release" |
| 550 | + }, |
469 | 551 | { |
470 | 552 | "name": "ci-gcc-debug", |
471 | 553 | "configurePreset": "ci-gcc-debug" |
|
623 | 705 | "name": "clang-release" |
624 | 706 | } |
625 | 707 | ] |
| 708 | + }, |
| 709 | + { |
| 710 | + "name": "apple-clang-release", |
| 711 | + "steps": [ |
| 712 | + { |
| 713 | + "type": "configure", |
| 714 | + "name": "apple-clang-release" |
| 715 | + }, |
| 716 | + { |
| 717 | + "type": "build", |
| 718 | + "name": "apple-clang-release" |
| 719 | + }, |
| 720 | + { |
| 721 | + "type": "test", |
| 722 | + "name": "apple-clang-release" |
| 723 | + } |
| 724 | + ] |
626 | 725 | } |
627 | 726 | ] |
628 | 727 | } |
0 commit comments