-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakePresets.json
163 lines (163 loc) · 5.13 KB
/
CMakePresets.json
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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "macos-x86_64",
"displayName": "MacOS x86_64 Release",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/macos-x86_64-release",
"cacheVariables": {
"CMAKE_OSX_ARCHITECTURES": "x86_64",
"CMAKE_CXX_FLAGS": "-stdlib=libc++",
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "macos-arm64",
"displayName": "MacOS ARM64 Release",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/macos-arm64-release",
"cacheVariables": {
"CMAKE_OSX_ARCHITECTURES": "arm64",
"CMAKE_CXX_FLAGS": "-stdlib=libc++",
"BOOST_CONTEXT_ARCHITECTURE": "arm64",
"BOOST_CONTEXT_ABI": "aapcs",
"ENABLE_ASM": "OFF",
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "linux-amd64-release",
"displayName": "Linux AMD64 Release",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/amd64-release",
"toolchainFile": "/opt/x86_64-multilib-linux-musl/toolchain-amd64.cmake",
"cacheVariables": {
"CMAKE_EXE_LINKER_FLAGS": "-B/opt/mold",
"CMAKE_BUILD_TYPE": "Release"
},
"environment": {
"PATH": "/opt:/opt/cmake-3.26.3-linux-x86_64/bin:/opt/buildcache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
}
},
{
"name": "linux-arm64-release",
"displayName": "Linux ARM64 Release",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/arm64-release",
"toolchainFile": "/opt/aarch64-unknown-linux-musl/toolchain-arm64.cmake",
"cacheVariables": {
"CMAKE_CROSSCOMPILING_EMULATOR": "qemu-aarch64-static",
"CMAKE_EXE_LINKER_FLAGS": "-B/opt/mold",
"CMAKE_BUILD_TYPE": "Release"
},
"environment": {
"PATH": "/opt:/opt/cmake-3.26.3-linux-x86_64/bin:/opt/buildcache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
}
},
{
"name": "linux-sanitizer",
"displayName": "Linux Sanitizer",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/sanitizer",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang-18",
"CMAKE_CXX_COMPILER": "clang++-18",
"CMAKE_EXE_LINKER_FLAGS": "-lc++abi",
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_FLAGS": "-fsanitize=address,undefined -fno-omit-frame-pointer",
"CMAKE_CXX_FLAGS": "-stdlib=libc++ -fsanitize=address,undefined -fno-omit-frame-pointer"
},
"environment": {
"PATH": "/opt:/opt/cmake-3.26.3-linux-x86_64/bin:/opt/buildcache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
}
},
{
"name": "linux-debug",
"displayName": "Linux Debug",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_EXE_LINKER_FLAGS": "-B/opt/mold"
},
"environment": {
"PATH": "/opt:/opt/cmake-3.26.3-linux-x86_64/bin:/opt/buildcache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"CXX": "/usr/bin/g++-13",
"CC": "/usr/bin/gcc-13"
}
},
{
"name": "linux-relwithdebinfo",
"displayName": "Linux RelWithDebInfo",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/relwithdebinfo",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_EXE_LINKER_FLAGS": "-B/opt/mold"
},
"environment": {
"PATH": "/opt:/opt/cmake-3.26.3-linux-x86_64/bin:/opt/buildcache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"CXX": "/usr/bin/g++-13",
"CC": "/usr/bin/gcc-13"
}
},
{
"name": "clang-tidy",
"displayName": "Clang Tidy",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/clang-tidy",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang-18",
"CMAKE_CXX_COMPILER": "clang++-18",
"CMAKE_CXX_FLAGS": "-stdlib=libc++",
"CMAKE_EXE_LINKER_FLAGS": "-lc++abi",
"CMAKE_BUILD_TYPE": "Release",
"ICC_LINT": "On"
},
"environment": {
"BUILDCACHE_LUA_PATH": "/opt/buildcache/share/lua-examples",
"PATH": "/opt:/opt/cmake-3.26.3-linux-x86_64/bin:/opt/buildcache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
}
}
],
"buildPresets": [
{
"name": "macos-x86_64",
"configurePreset": "macos-x86_64"
},
{
"name": "macos-arm64",
"configurePreset": "macos-arm64"
},
{
"name": "linux-amd64-release",
"configurePreset": "linux-amd64-release"
},
{
"name": "linux-arm64-release",
"configurePreset": "linux-arm64-release"
},
{
"name": "clang-tidy",
"configurePreset": "clang-tidy"
},
{
"name": "linux-debug",
"configurePreset": "linux-debug"
},
{
"name": "linux-relwithdebinfo",
"configurePreset": "linux-relwithdebinfo"
},
{
"name": "linux-sanitizer",
"configurePreset": "linux-sanitizer"
}
]
}