-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
150 lines (150 loc) · 3.91 KB
/
Copy pathCMakePresets.json
File metadata and controls
150 lines (150 loc) · 3.91 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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20,
"patch": 0
},
"configurePresets": [
{
"name": "dev-debug",
"displayName": "Debug Development Build",
"description": "Development build with full debugging symbols and no optimization",
"binaryDir": "${sourceDir}/build/debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"BUILD_EXAMPLES": "ON",
"BUILD_TESTS": "ON"
}
},
{
"name": "release",
"displayName": "Optimized Release Build",
"description": "Production build with full optimizations",
"binaryDir": "${sourceDir}/build/release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"BUILD_EXAMPLES": "ON",
"BUILD_TESTS": "ON"
}
},
{
"name": "release-native",
"displayName": "Native-optimized Release",
"description": "Release build optimized for the current machine's CPU",
"inherits": "release",
"binaryDir": "${sourceDir}/build/release-native",
"cacheVariables": {
"MOS6502_MARCH": "native"
}
},
{
"name": "release-portable",
"displayName": "Portable Release Build",
"description": "Release build targeting broad CPU compatibility (x86-64-v2)",
"inherits": "release",
"binaryDir": "${sourceDir}/build/release-portable",
"cacheVariables": {
"MOS6502_MARCH": "x86-64-v2"
}
},
{
"name": "sanitize-address",
"displayName": "AddressSanitizer Build",
"description": "Debug build with AddressSanitizer for memory error detection",
"binaryDir": "${sourceDir}/build/asan",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"BUILD_EXAMPLES": "ON",
"BUILD_TESTS": "ON",
"ENABLE_ASAN": "ON"
}
},
{
"name": "sanitize-undefined",
"displayName": "UndefinedBehaviorSanitizer Build",
"description": "Debug build with UBSan for undefined behavior detection",
"binaryDir": "${sourceDir}/build/ubsan",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"BUILD_EXAMPLES": "ON",
"BUILD_TESTS": "ON",
"ENABLE_UBSAN": "ON"
}
},
{
"name": "pgo-generate",
"displayName": "PGO Profile Generation",
"description": "Build that generates profiling data for PGO optimization",
"binaryDir": "${sourceDir}/build/pgo-generate",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"BUILD_EXAMPLES": "ON",
"BUILD_TESTS": "ON",
"ENABLE_PGO_GENERATE": "ON"
}
},
{
"name": "pgo-use",
"displayName": "PGO Optimized Build",
"description": "Build using previously generated profile data",
"binaryDir": "${sourceDir}/build/pgo-use",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"BUILD_EXAMPLES": "ON",
"BUILD_TESTS": "ON",
"ENABLE_PGO_USE": "ON"
}
}
],
"buildPresets": [
{
"name": "dev-debug",
"configurePreset": "dev-debug"
},
{
"name": "release",
"configurePreset": "release"
},
{
"name": "release-native",
"configurePreset": "release-native"
},
{
"name": "release-portable",
"configurePreset": "release-portable"
},
{
"name": "sanitize-address",
"configurePreset": "sanitize-address"
},
{
"name": "sanitize-undefined",
"configurePreset": "sanitize-undefined"
},
{
"name": "pgo-generate",
"configurePreset": "pgo-generate"
},
{
"name": "pgo-use",
"configurePreset": "pgo-use"
}
],
"testPresets": [
{
"name": "dev-debug",
"configurePreset": "dev-debug",
"output": {
"outputOnFailure": true
}
},
{
"name": "release",
"configurePreset": "release",
"output": {
"outputOnFailure": true
}
}
]
}