Repository navigation
Expand file tree
/
Copy pathCMakePresets.json
More file actions
207 lines (207 loc) · 5.79 KB
/
Copy pathCMakePresets.json
File metadata and controls
207 lines (207 loc) · 5.79 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}",
"toolchainFile": "${sourceDir}/cmake/toolchains/mingw-gcc15.cmake"
},
{
"name": "release",
"displayName": "Release",
"description": "User build (Release, no tests, no SPIRV-Tools)",
"inherits": "base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"BUILD_TESTING": "OFF",
"ANYPS5_ENABLE_SPIRV_TOOLS": "OFF"
}
},
{
"name": "dev",
"displayName": "Development",
"description": "Development and local regression (RelWithDebInfo, tests, SPIRV-Tools)",
"inherits": "base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"BUILD_TESTING": "ON",
"ANYPS5_ENABLE_SPIRV_TOOLS": "ON"
}
},
{
"name": "default",
"displayName": "Default",
"description": "Default developer configure preset (alias to dev)",
"inherits": "dev"
},
{
"name": "ci",
"displayName": "CI",
"description": "Hosted CI (inherits dev, warnings as errors for PortPS5 targets)",
"inherits": "dev",
"cacheVariables": {
"PORTPS5_COMPILE_WARNING_AS_ERROR": "ON",
"PORTPS5_REQUIRE_FFMPEG": "ON"
}
},
{
"name": "asan",
"displayName": "ASan / UBSan (local / Linux only)",
"description": "Local developer preset: AddressSanitizer + UndefinedBehaviorSanitizer. Not run in CI: the project links executables with -static globally (CMakeLists.txt line 1), and LLVM ASan requires a shared runtime that cannot be injected into a statically linked binary. Additionally, MinGW-w64 GCC does not ship libasan/libubsan for Windows. Use this preset on Linux/WSL with GCC's native libasan, or revisit when the project moves to dynamic linking for test binaries.",
"inherits": "ci",
"cacheVariables": {
"CMAKE_C_FLAGS": "-fsanitize=address,undefined -fno-omit-frame-pointer -g",
"CMAKE_CXX_FLAGS": "-fsanitize=address,undefined -fno-omit-frame-pointer -g",
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=address,undefined",
"CMAKE_SHARED_LINKER_FLAGS": "-fsanitize=address,undefined"
},
"environment": {
"ASAN_OPTIONS": "halt_on_error=1:abort_on_error=1:print_stats=1",
"UBSAN_OPTIONS": "halt_on_error=1:abort_on_error=1:print_stacktrace=1"
}
}
],
"buildPresets": [
{
"name": "release",
"configurePreset": "release",
"targets": [
"relinker",
"libs"
]
},
{
"name": "dev",
"configurePreset": "dev"
},
{
"name": "ci",
"configurePreset": "ci"
},
{
"name": "asan",
"configurePreset": "asan"
}
],
"testPresets": [
{
"name": "ci",
"displayName": "CI Unit Tests",
"description": "Runs all unit tests in CI",
"configurePreset": "ci",
"execution": {
"jobs": 4,
"timeout": 300
},
"output": {
"outputOnFailure": true
},
"filter": {
"include": {
"label": "^unit$"
}
}
},
{
"name": "unit",
"displayName": "Unit Tests",
"description": "Runs all unit-labeled tests",
"configurePreset": "dev",
"execution": {
"jobs": 4
},
"output": {
"outputOnFailure": true
},
"filter": {
"include": {
"label": "^unit$"
}
}
},
{
"name": "slow",
"displayName": "Slow Tests (scheduled)",
"description": "Runs slow-labeled tests (full-size fuzz runs) in the scheduled nightly workflow; excluded from the hosted unit run",
"configurePreset": "ci",
"output": {
"outputOnFailure": true
},
"filter": {
"include": {
"label": "^slow$"
}
}
},
{
"name": "lavapipe",
"displayName": "Driver Tests on Lavapipe",
"description": "Runs lavapipe-labeled driver tests on a software Vulkan device (hosted driver-lavapipe job). Suites without a device skip themselves",
"configurePreset": "ci",
"execution": {
"jobs": 4
},
"output": {
"outputOnFailure": true
},
"filter": {
"include": {
"label": "^lavapipe$"
}
}
},
{
"name": "golden",
"displayName": "Recompiler Golden Corpus",
"description": "Runs golden-labeled tests (hosted recompiler-golden job)",
"configurePreset": "ci",
"output": {
"outputOnFailure": true
},
"filter": {
"include": {
"label": "^golden$"
}
}
},
{
"name": "dev",
"displayName": "All Local Dev Tests",
"description": "Runs all tests in development",
"configurePreset": "dev",
"output": {
"outputOnFailure": true
}
},
{
"name": "default",
"displayName": "Default Test Preset",
"description": "Default developer test preset (all tests)",
"configurePreset": "dev",
"output": {
"outputOnFailure": true
}
},
{
"name": "asan",
"displayName": "ASan / UBSan Unit Tests",
"description": "Runs unit-labeled tests under AddressSanitizer and UndefinedBehaviorSanitizer. Any heap buffer overflow, use-after-free, or undefined behaviour terminates the test immediately with a full stack trace. Run locally with: cmake --preset asan && cmake --build --preset asan && ctest --preset asan",
"configurePreset": "asan",
"output": {
"outputOnFailure": true
},
"filter": {
"include": {
"label": "^unit$"
}
}
}
]
}