-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCMakePresets.json
More file actions
104 lines (104 loc) · 3.16 KB
/
CMakePresets.json
File metadata and controls
104 lines (104 loc) · 3.16 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
{
"version": 3,
"configurePresets": [
{
"name": "base",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/cmake/QuickViewToolchain.cmake",
"CMAKE_C_COMPILER": "clang-cl",
"CMAKE_CXX_COMPILER": "clang-cl",
"CMAKE_RC_COMPILER": "llvm-rc",
"VCPKG_TARGET_TRIPLET": "x64-windows-static-clang",
"VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/custom-triplet",
"VCPKG_OVERLAY_PORTS": "${sourceDir}/custom-ports",
"VCPKG_MANIFEST_MODE": "ON",
"CMAKE_MSVC_RUNTIME_LIBRARY": "MultiThreaded",
"CMAKE_LINKER": "${sourceDir}/cmake/lld-link-wrapper.bat",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "Debug-ASan",
"displayName": "Debug-ASan (Safe Mode)",
"description": "Enable ASan, disable optimizations, ensure clear debug stacks.",
"inherits": "base",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows-static-clang-asan",
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"ENABLE_ASAN": "ON",
"ENABLE_LTO": "OFF"
}
},
{
"name": "Release-LTO",
"displayName": "Release-LTO (Extreme Speed & Size)",
"description": "Enable Full LTO and explicit threshold tuning (No -O3/ThinLTO).",
"inherits": "base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"ENABLE_ASAN": "OFF",
"ENABLE_LTO": "ON"
}
},
{
"name": "Release-MSVC",
"displayName": "Release-MSVC (Baseline)",
"description": "Standard MSVC build for comparison.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/third_party/vcpkg/scripts/buildsystems/vcpkg.cmake",
"VCPKG_TARGET_TRIPLET": "x64-windows-static",
"VCPKG_OVERLAY_PORTS": "${sourceDir}/custom-ports",
"VCPKG_MANIFEST_MODE": "ON",
"CMAKE_BUILD_TYPE": "Release",
"ENABLE_ASAN": "OFF",
"ENABLE_LTO": "OFF"
}
},
{
"name": "base-arm64",
"hidden": true,
"inherits": "base",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "arm64-windows-static-clang",
"CMAKE_SYSTEM_NAME": "Windows",
"CMAKE_SYSTEM_PROCESSOR": "ARM64"
}
},
{
"name": "ARM64-Release-LTO",
"displayName": "ARM64-Release-LTO",
"description": "ARM64 Build with Full LTO.",
"inherits": "base-arm64",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"ENABLE_ASAN": "OFF",
"ENABLE_LTO": "ON",
"CMAKE_C_FLAGS": "--target=arm64-pc-windows-msvc",
"CMAKE_CXX_FLAGS": "--target=arm64-pc-windows-msvc"
}
}
],
"buildPresets": [
{
"name": "ARM64-Release-LTO",
"configurePreset": "ARM64-Release-LTO"
},
{
"name": "Debug-ASan",
"configurePreset": "Debug-ASan"
},
{
"name": "Release-LTO",
"configurePreset": "Release-LTO"
},
{
"name": "Release-MSVC",
"configurePreset": "Release-MSVC"
}
]
}