|
1 | 1 | { |
2 | 2 | "version": 3, |
3 | 3 | "cmakeMinimumRequired": { "major": 3, "minor": 21, "patch": 0 }, |
| 4 | + "vendor": { |
| 5 | + "spdx": { |
| 6 | + "SPDX-License-Identifier": "MIT", |
| 7 | + "copyright": "Copyright (C) 2026 PinPoint Golf", |
| 8 | + "note": "JSON carries no comment syntax; `vendor` is the presets schema's own escape hatch for data CMake must ignore." |
| 9 | + } |
| 10 | + }, |
4 | 11 | "configurePresets": [ |
5 | | - { "name": "dev", "displayName": "Debug, warnings as errors", "binaryDir": "${sourceDir}/build/dev", |
6 | | - "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" } }, |
7 | | - { "name": "asan", "displayName": "Debug + ASan + UBSan", "binaryDir": "${sourceDir}/build/asan", |
8 | | - "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug", "LIBBUFFER_SANITIZE": "address;undefined" } }, |
9 | | - { "name": "tsan", "displayName": "Debug + TSan", "binaryDir": "${sourceDir}/build/tsan", |
10 | | - "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug", "LIBBUFFER_SANITIZE": "thread" } }, |
11 | | - { "name": "release", "displayName": "Release: the build the latency benchmark is measured in", |
12 | | - "binaryDir": "${sourceDir}/build/release", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release" } } |
| 12 | + { |
| 13 | + "name": "dev", |
| 14 | + "displayName": "Debug, warnings as errors", |
| 15 | + "binaryDir": "${sourceDir}/build/dev", |
| 16 | + "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" } |
| 17 | + }, |
| 18 | + { |
| 19 | + "name": "san", |
| 20 | + "displayName": "Debug + ASan + UBSan", |
| 21 | + "binaryDir": "${sourceDir}/build/san", |
| 22 | + "cacheVariables": { |
| 23 | + "CMAKE_BUILD_TYPE": "Debug", |
| 24 | + "LIBBUFFER_ENABLE_ASAN": "ON", |
| 25 | + "LIBBUFFER_ENABLE_UBSAN": "ON" |
| 26 | + } |
| 27 | + }, |
| 28 | + { |
| 29 | + "name": "tsan", |
| 30 | + "displayName": "Debug + TSan", |
| 31 | + "description": "ThreadSanitizer, on its own (it cannot be combined with ASan). The tests set TSAN_OPTIONS to tests/tsan_suppressions.txt.", |
| 32 | + "binaryDir": "${sourceDir}/build/tsan", |
| 33 | + "cacheVariables": { |
| 34 | + "CMAKE_BUILD_TYPE": "Debug", |
| 35 | + "LIBBUFFER_ENABLE_TSAN": "ON" |
| 36 | + } |
| 37 | + }, |
| 38 | + { |
| 39 | + "name": "cov", |
| 40 | + "displayName": "Debug + gcov", |
| 41 | + "binaryDir": "${sourceDir}/build/cov", |
| 42 | + "cacheVariables": { |
| 43 | + "CMAKE_BUILD_TYPE": "Debug", |
| 44 | + "LIBBUFFER_ENABLE_COVERAGE": "ON" |
| 45 | + } |
| 46 | + }, |
| 47 | + { |
| 48 | + "name": "rel", |
| 49 | + "displayName": "RelWithDebInfo — optimised, keeps debug info", |
| 50 | + "description": "The build to configure when an optimised fault needs a symbolised stack. Not the shipping artefact; that is `release`.", |
| 51 | + "binaryDir": "${sourceDir}/build/rel", |
| 52 | + "cacheVariables": { "CMAKE_BUILD_TYPE": "RelWithDebInfo" } |
| 53 | + }, |
| 54 | + { |
| 55 | + "name": "release", |
| 56 | + "displayName": "Release — optimised, no debug info", |
| 57 | + "description": "-O3 -DNDEBUG: the build the latency benchmark is measured in.", |
| 58 | + "binaryDir": "${sourceDir}/build/release", |
| 59 | + "cacheVariables": { "CMAKE_BUILD_TYPE": "Release" } |
| 60 | + } |
13 | 61 | ], |
14 | 62 | "buildPresets": [ |
15 | | - { "name": "dev", "configurePreset": "dev" }, |
16 | | - { "name": "asan", "configurePreset": "asan" }, |
17 | | - { "name": "tsan", "configurePreset": "tsan" }, |
18 | | - { "name": "release", "configurePreset": "release" } |
| 63 | + { "name": "dev", "configurePreset": "dev", "jobs": 4 }, |
| 64 | + { "name": "san", "configurePreset": "san", "jobs": 4 }, |
| 65 | + { "name": "tsan", "configurePreset": "tsan", "jobs": 4 }, |
| 66 | + { "name": "cov", "configurePreset": "cov", "jobs": 4 }, |
| 67 | + { "name": "rel", "configurePreset": "rel", "jobs": 4 }, |
| 68 | + { "name": "release", "configurePreset": "release", "jobs": 4 } |
19 | 69 | ], |
20 | 70 | "testPresets": [ |
21 | 71 | { "name": "dev", "configurePreset": "dev", "output": { "outputOnFailure": true } }, |
22 | | - { "name": "asan", "configurePreset": "asan", "output": { "outputOnFailure": true } }, |
23 | | - { "name": "tsan", "configurePreset": "tsan", "output": { "outputOnFailure": true } } |
| 72 | + { "name": "san", "configurePreset": "san", "output": { "outputOnFailure": true } }, |
| 73 | + { "name": "tsan", "configurePreset": "tsan", "output": { "outputOnFailure": true } }, |
| 74 | + { "name": "cov", "configurePreset": "cov", "output": { "outputOnFailure": true } }, |
| 75 | + { "name": "rel", "configurePreset": "rel", "output": { "outputOnFailure": true } } |
24 | 76 | ] |
25 | 77 | } |
0 commit comments