-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakePresets.json
More file actions
164 lines (164 loc) · 4.36 KB
/
CMakePresets.json
File metadata and controls
164 lines (164 loc) · 4.36 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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 16,
"patch": 0
},
"configurePresets": [
{
"name": "default",
"displayName": "Default Config",
"description": "Default build using Ninja generator",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "debug",
"displayName": "Debug Config",
"inherits": "default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "release",
"displayName": "Release Config",
"inherits": "default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "ci",
"displayName": "CI Config",
"inherits": "release",
"cacheVariables": {
"T81_BUILD_TESTS": "ON",
"T81_BUILD_EXAMPLES": "ON",
"T81_BUILD_BENCHMARKS": "OFF",
"T81_ENABLE_TERNARYOS": "ON",
"T81_ENABLE_DPE": "ON"
}
},
{
"name": "dev",
"displayName": "Dev Config (debug + tests + TernaryOS + DPE)",
"description": "Local development preset: debug build with tests, TernaryOS, and DPE enabled. Matches the full 405-test suite. Run: cmake --preset dev && cmake --build build-dev && ctest --preset dev",
"inherits": "default",
"binaryDir": "${sourceDir}/build-dev",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"T81_BUILD_TESTS": "ON",
"T81_BUILD_EXAMPLES": "OFF",
"T81_BUILD_BENCHMARKS": "OFF",
"T81_ENABLE_TERNARYOS": "ON",
"T81_ENABLE_DPE": "ON"
}
},
{
"name": "asan",
"displayName": "ASan/UBSan (matches CI sanitizers job)",
"description": "Debug build with AddressSanitizer and UndefinedBehaviorSanitizer. Mirrors the CI 'sanitizers' job exactly. Run: cmake --preset asan && cmake --build build-asan && ctest --preset asan",
"inherits": "default",
"binaryDir": "${sourceDir}/build-asan",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"T81_BUILD_TESTS": "ON",
"T81_BUILD_EXAMPLES": "OFF",
"T81_BUILD_BENCHMARKS": "OFF",
"T81_ENABLE_ASAN": "ON",
"T81_ENABLE_UBSAN": "ON"
}
},
{
"name": "warn-strict",
"displayName": "Strict Warning Scan (local pre-push check)",
"description": "Clang build with -Werror and the same warning classes enforced by Windows CI (cl.exe /W4 /WX and clang-cl). Run before pushing to catch -Wswitch, -Wunused, and -Wconversion issues locally. Usage: cmake --preset warn-strict && cmake --build build-warn-strict 2>&1 | head -40",
"inherits": "release",
"binaryDir": "${sourceDir}/build-warn-strict",
"cacheVariables": {
"T81_BUILD_TESTS": "ON",
"T81_BUILD_EXAMPLES": "OFF",
"T81_BUILD_BENCHMARKS": "OFF",
"T81_WARN_STRICT": "ON",
"CMAKE_CXX_FLAGS": "-Werror -Wswitch -Wunused-variable -Wunused-function -Wno-deprecated-declarations"
}
}
],
"buildPresets": [
{
"name": "debug",
"configurePreset": "debug"
},
{
"name": "release",
"configurePreset": "release"
},
{
"name": "ci",
"configurePreset": "ci"
},
{
"name": "dev",
"configurePreset": "dev"
},
{
"name": "asan",
"configurePreset": "asan"
},
{
"name": "warn-strict",
"configurePreset": "warn-strict"
}
],
"testPresets": [
{
"name": "ci",
"configurePreset": "ci",
"output": {
"outputOnFailure": true
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": true
}
},
{
"name": "dev",
"configurePreset": "dev",
"output": {
"outputOnFailure": true
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": false
}
},
{
"name": "asan",
"configurePreset": "asan",
"output": {
"outputOnFailure": true
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": false
}
},
{
"name": "warn-strict",
"configurePreset": "warn-strict",
"output": {
"outputOnFailure": true
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": false
}
}
]
}