-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakePresets.json
142 lines (142 loc) · 3.32 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "cfg-clang",
"generator": "Ninja",
"hidden": true,
"cacheVariables": {
"CMAKE_CXX_COMPILER": "clang++"
}
},
{
"name": "cfg-gcc",
"generator": "Ninja",
"hidden": true,
"cacheVariables": {
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "clang-debug",
"description": "Configure for clang debug build",
"inherits": [ "cfg-clang" ],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "gcc-debug",
"description": "Configure for gcc debug build",
"inherits": [ "cfg-gcc" ],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "release-time-trace",
"description": "Configure for release build",
"inherits": [ "cfg-clang" ],
"binaryDir": "${sourceDir}/build/release-time-trace",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_FLAGS": "-ftime-trace -fno-omit-frame-pointer",
"SIMPLE_ENUM_ENABLE_TIME_TRACE": "ON"
}
},
{
"name": "clang-release",
"description": "Configure for release build",
"inherits": [ "cfg-clang" ],
"binaryDir": "${sourceDir}/build/clang-release"
},
{
"name": "clang-release-test-asan",
"description": "Configure for release build with address sanitizer",
"inherits": [ "cfg-clang" ],
"binaryDir": "${sourceDir}/build/release-test-asan",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_FLAGS": "-ggdb -fvisibility=default -fno-omit-frame-pointer -fsanitize=address -fsanitize-address-use-after-scope -fsanitize=undefined",
"CXX_ENABLE_SANITIZE" : "ON"
}
}
],
"buildPresets": [
{
"name": "clang-debug",
"configurePreset": "clang-debug"
},
{
"name": "release-time-trace",
"configurePreset": "release-time-trace"
},
{
"name": "clang-release",
"configurePreset": "clang-release"
},
{
"name": "clang-release-test-asan",
"configurePreset": "clang-release-test-asan"
}
],
"testPresets": [
{
"name": "clang-release-test-asan",
"configurePreset": "clang-release-test-asan",
"output": {
"outputOnFailure": true
}
},
{
"name": "clang-release",
"configurePreset": "clang-release",
"output": {
"outputOnFailure": true
}
}
],
"workflowPresets": [
{
"name" : "clang-release",
"description" : "tests",
"steps": [
{
"type": "configure",
"name": "clang-release"
},
{
"type": "build",
"name": "clang-release"
},
{
"type": "test",
"name": "clang-release"
}
]
},
{
"name" : "clang-release-test-asan",
"description" : "tests with asan",
"steps": [
{
"type": "configure",
"name": "clang-release-test-asan"
},
{
"type": "build",
"name": "clang-release-test-asan"
},
{
"type": "test",
"name": "clang-release-test-asan"
}
]
}
]
}