Repository navigation
Expand file tree
/
Copy pathCMakePresets.json
More file actions
156 lines (156 loc) · 4.94 KB
/
Copy pathCMakePresets.json
File metadata and controls
156 lines (156 loc) · 4.94 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 25,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"hidden": true,
"generator": "Ninja",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "debug",
"displayName": "Debug Unix",
"inherits": "base",
"binaryDir": "${sourceDir}/build/debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_C_COMPILER_LAUNCHER": "ccache",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"CMAKE_C_FLAGS": "",
"CMAKE_CXX_FLAGS": "",
"CMAKE_EXE_LINKER_FLAGS": "-fuse-ld=mold",
"CMAKE_SHARED_LINKER_FLAGS": "-fuse-ld=mold",
"POUND_COMPILER_FLAGS": "-Wall -Wextra -Wconversion -Wsign-conversion -Wshadow -Wstrict-prototypes -fstack-protector-strong -Wpadded -Wvla -fstrict-aliasing -fno-omit-frame-pointer -ftrivial-auto-var-init=zero -gsplit-dwarf -g",
"POUND_LINKER_FLAGS": "",
"POUND_SANITIZERS": "-fsanitize=address,undefined",
"POUND_ENABLE_LINK_TIME_OPTIMIZATION": "ON"
}
},
{
"name": "release",
"displayName": "Release Unix",
"inherits": "base",
"binaryDir": "${sourceDir}/build/release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_C_COMPILER_LAUNCHER": "ccache",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"CMAKE_C_FLAGS": "-ffile-prefix-map=${sourceDir}=. -O3",
"CMAKE_CXX_FLAGS": "-ffile-prefix-map=${sourceDir}=. -O3",
"CMAKE_EXE_LINKER_FLAGS": "-fuse-ld=lld",
"CMAKE_SHARED_LINKER_FLAGS": "-fuse-ld=lld",
"POUND_COMPILER_FLAGS": "-fPIC -fstrict-aliasing -fno-omit-frame-pointer -ffunction-sections -fdata-sections -flto=full",
"POUND_LINKER_FLAGS": "-Wl,--gc-sections",
"POUND_SANITIZERS": "",
"POUND_ENABLE_LINK_TIME_OPTIMIZATION": "ON"
}
},
{
"name": "debug-windows",
"displayName": "Debug Windows",
"inherits": "base",
"binaryDir": "${sourceDir}/build/debug",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_COMPILER": "clang-cl",
"CMAKE_CXX_COMPILER": "clang-cl",
"CMAKE_C_COMPILER_LAUNCHER": "sccache",
"CMAKE_CXX_COMPILER_LAUNCHER": "sccache",
"CMAKE_C_FLAGS": "-MP -DNOMINMAX -DWIN32_LEAN_AND_MEAN",
"CMAKE_CXX_FLAGS": "-MP -DNOMINMAX -DWIN32_LEAN_AND_MEAN",
"CMAKE_EXE_LINKER_FLAGS": "",
"CMAKE_SHARED_LINKER_FLAGS": "",
"POUND_COMPILER_FLAGS": "-fstrict-aliasing -fno-omit-frame-pointer -ftrivial-auto-var-init=zero -gsplit-dwarf",
"POUND_LINKER_FLAGS": "",
"POUND_SANITIZERS": "",
"POUND_ENABLE_LINK_TIME_OPTIMIZATION": "ON"
}
},
{
"name": "release-windows",
"displayName": "Release Windows",
"inherits": "base",
"binaryDir": "${sourceDir}/build/release",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_C_COMPILER": "clang-cl",
"CMAKE_CXX_COMPILER": "clang-cl",
"CMAKE_C_COMPILER_LAUNCHER": "sccache",
"CMAKE_CXX_COMPILER_LAUNCHER": "sccache",
"CMAKE_C_FLAGS": "-MP -DNOMINMAX -DWIN32_LEAN_AND_MEAN -GL -O2",
"CMAKE_CXX_FLAGS": "-MP -DNOMINMAX -DWIN32_LEAN_AND_MEAN -GL -O2",
"CMAKE_EXE_LINKER_FLAGS": "-LTCG:incremental -OPT:REF -OPT:ICF",
"CMAKE_SHARED_LINKER_FLAGS": "-LTCG:incremental -OPT:REF -OPT:ICF",
"POUND_COMPILER_FLAGS": "-fPIC -fstrict-aliasing -fno-omit-frame-pointer -ffunction-sections -fdata-sections -flto=full",
"POUND_LINKER_FLAGS": "-Wl,--gc-sections",
"POUND_SANITIZERS": "",
"POUND_ENABLE_LINK_TIME_OPTIMIZATION": "ON"
}
}
],
"buildPresets": [
{
"name": "debug",
"configurePreset": "debug"
},
{
"name": "release",
"configurePreset": "release"
},
{
"name": "debug-windows",
"configurePreset": "debug-windows"
},
{
"name": "release-windows",
"configurePreset": "release-windows"
}
],
"testPresets": [
{
"name": "debug",
"configurePreset": "debug",
"output": {
"outputOnFailure": true,
"verbosity": "verbose"
},
"execution": {
"noTestsAction": "error",
"jobs": 0
}
},
{
"name": "debug-windows",
"configurePreset": "debug-windows",
"output": {
"outputOnFailure": true,
"verbosity": "verbose"
},
"execution": {
"noTestsAction": "error",
"jobs": 0
}
}
]
}