-
-
Notifications
You must be signed in to change notification settings - Fork 437
Expand file tree
/
Copy pathCMakePresets.json
More file actions
174 lines (174 loc) · 6.33 KB
/
Copy pathCMakePresets.json
File metadata and controls
174 lines (174 loc) · 6.33 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 25,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"hidden": true,
"binaryDir": "${sourceDir}/build/build_${presetName}",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++"
}
},
{
"name": "native",
"hidden": true,
"inherits": "base",
"cacheVariables": {
"PONY_ARCH": "native",
"CMAKE_C_FLAGS": "-march=native -mtune=generic",
"CMAKE_CXX_FLAGS": "-march=native -mtune=generic"
}
},
{
"name": "x86-64",
"hidden": true,
"inherits": "base",
"cacheVariables": {
"PONY_ARCH": "x86-64",
"CMAKE_C_FLAGS": "-march=x86-64 -mtune=generic",
"CMAKE_CXX_FLAGS": "-march=x86-64 -mtune=generic"
}
},
{
"name": "armv8",
"hidden": true,
"inherits": "base",
"cacheVariables": {
"PONY_ARCH": "armv8",
"CMAKE_C_FLAGS": "-march=armv8 -mtune=generic",
"CMAKE_CXX_FLAGS": "-march=armv8 -mtune=generic"
}
},
{
"name": "armv8-a",
"hidden": true,
"inherits": "base",
"cacheVariables": {
"PONY_ARCH": "armv8-a",
"CMAKE_C_FLAGS": "-march=armv8-a -mtune=generic",
"CMAKE_CXX_FLAGS": "-march=armv8-a -mtune=generic"
}
},
{
"name": "debug",
"displayName": "Debug (native)",
"inherits": "native",
"cacheVariables": { "CMAKE_BUILD_TYPE": "debug" }
},
{
"name": "release",
"displayName": "Release (native)",
"inherits": "native",
"cacheVariables": { "CMAKE_BUILD_TYPE": "release" }
},
{
"name": "x86-64-debug",
"displayName": "Debug (x86-64)",
"inherits": "x86-64",
"cacheVariables": { "CMAKE_BUILD_TYPE": "debug" }
},
{
"name": "x86-64-release",
"displayName": "Release (x86-64)",
"inherits": "x86-64",
"cacheVariables": { "CMAKE_BUILD_TYPE": "release" }
},
{
"name": "armv8-debug",
"displayName": "Debug (armv8)",
"inherits": "armv8",
"cacheVariables": { "CMAKE_BUILD_TYPE": "debug" }
},
{
"name": "armv8-release",
"displayName": "Release (armv8)",
"inherits": "armv8",
"cacheVariables": { "CMAKE_BUILD_TYPE": "release" }
},
{
"name": "armv8-a-debug",
"displayName": "Debug (armv8-a)",
"inherits": "armv8-a",
"cacheVariables": { "CMAKE_BUILD_TYPE": "debug" }
},
{
"name": "armv8-a-release",
"displayName": "Release (armv8-a)",
"inherits": "armv8-a",
"cacheVariables": { "CMAKE_BUILD_TYPE": "release" }
},
{
"name": "debug-asan",
"displayName": "Debug + sanitizers (native)",
"inherits": "debug",
"cacheVariables": {
"PONY_USES": "pool_memalign,address_sanitizer,undefined_behavior_sanitizer"
}
},
{
"name": "release-asan",
"displayName": "Release + sanitizers (native)",
"inherits": "release",
"cacheVariables": {
"PONY_USES": "pool_memalign,address_sanitizer,undefined_behavior_sanitizer"
}
},
{
"name": "windows-base",
"hidden": true,
"binaryDir": "${sourceDir}/build/build"
},
{
"name": "windows-x86-64",
"displayName": "Windows x86-64 (multi-config)",
"inherits": "windows-base",
"architecture": { "value": "x64", "strategy": "set" },
"toolset": { "value": "host=x64", "strategy": "set" },
"cacheVariables": { "PONY_CPU": "x86-64" }
},
{
"name": "windows-arm64",
"displayName": "Windows arm64 (multi-config)",
"inherits": "windows-base",
"architecture": { "value": "ARM64", "strategy": "set" },
"toolset": { "value": "host=ARM64", "strategy": "set" },
"cacheVariables": { "PONY_CPU": "generic" }
}
],
"buildPresets": [
{ "name": "debug", "configurePreset": "debug" },
{ "name": "release", "configurePreset": "release" },
{ "name": "x86-64-debug", "configurePreset": "x86-64-debug" },
{ "name": "x86-64-release", "configurePreset": "x86-64-release" },
{ "name": "armv8-debug", "configurePreset": "armv8-debug" },
{ "name": "armv8-release", "configurePreset": "armv8-release" },
{ "name": "armv8-a-debug", "configurePreset": "armv8-a-debug" },
{ "name": "armv8-a-release", "configurePreset": "armv8-a-release" },
{ "name": "debug-asan", "configurePreset": "debug-asan" },
{ "name": "release-asan", "configurePreset": "release-asan" },
{ "name": "windows-x86-64-debug", "configurePreset": "windows-x86-64", "configuration": "debug" },
{ "name": "windows-x86-64-release", "configurePreset": "windows-x86-64", "configuration": "release" },
{ "name": "windows-arm64-debug", "configurePreset": "windows-arm64", "configuration": "debug" },
{ "name": "windows-arm64-release", "configurePreset": "windows-arm64", "configuration": "release" }
],
"testPresets": [
{ "name": "debug", "configurePreset": "debug", "output": { "outputOnFailure": true } },
{ "name": "release", "configurePreset": "release", "output": { "outputOnFailure": true } },
{ "name": "x86-64-debug", "configurePreset": "x86-64-debug", "output": { "outputOnFailure": true } },
{ "name": "x86-64-release", "configurePreset": "x86-64-release", "output": { "outputOnFailure": true } },
{ "name": "armv8-debug", "configurePreset": "armv8-debug", "output": { "outputOnFailure": true } },
{ "name": "armv8-release", "configurePreset": "armv8-release", "output": { "outputOnFailure": true } },
{ "name": "armv8-a-debug", "configurePreset": "armv8-a-debug", "output": { "outputOnFailure": true } },
{ "name": "armv8-a-release", "configurePreset": "armv8-a-release", "output": { "outputOnFailure": true } },
{ "name": "windows-x86-64-debug", "configurePreset": "windows-x86-64", "configuration": "debug", "output": { "outputOnFailure": true } },
{ "name": "windows-x86-64-release", "configurePreset": "windows-x86-64", "configuration": "release", "output": { "outputOnFailure": true } },
{ "name": "windows-arm64-debug", "configurePreset": "windows-arm64", "configuration": "debug", "output": { "outputOnFailure": true } },
{ "name": "windows-arm64-release", "configurePreset": "windows-arm64", "configuration": "release", "output": { "outputOnFailure": true } }
]
}