Repository navigation
Expand file tree
/
Copy pathCMakePresets.json
More file actions
84 lines (84 loc) · 2.3 KB
/
Copy pathCMakePresets.json
File metadata and controls
84 lines (84 loc) · 2.3 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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "default",
"displayName": "Release",
"description": "Release build installed under /usr with FHS paths",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_INSTALL_LOCALSTATEDIR": "/var",
"CMAKE_INSTALL_PREFIX": "/usr",
"CMAKE_INSTALL_RUNSTATEDIR": "/run",
"CMAKE_INSTALL_SYSCONFDIR": "/etc"
}
},
{
"name": "dev",
"displayName": "Development",
"description": "Debug build with tests and extra warnings",
"inherits": "default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"ENABLE_TESTS": "ON",
"ENABLE_WARNINGS": "ON"
}
},
{
"name": "asan",
"displayName": "AddressSanitizer + UBSan",
"description": "Debug build with tests, instrumented with ASan and UBSan",
"inherits": "dev",
"cacheVariables": {
"ENABLE_SANITIZERS": "address,undefined"
}
},
{
"name": "tsan",
"displayName": "ThreadSanitizer",
"description": "Debug build with tests, instrumented with TSan (for renderd threading)",
"inherits": "dev",
"cacheVariables": {
"ENABLE_SANITIZERS": "thread"
}
}
],
"buildPresets": [
{ "name": "default", "configurePreset": "default" },
{ "name": "dev", "configurePreset": "dev" },
{ "name": "asan", "configurePreset": "asan" },
{ "name": "tsan", "configurePreset": "tsan" }
],
"testPresets": [
{
"name": "dev",
"configurePreset": "dev",
"output": { "outputOnFailure": true }
},
{
"name": "asan",
"configurePreset": "asan",
"output": { "outputOnFailure": true },
"environment": {
"ASAN_OPTIONS": "detect_leaks=0",
"UBSAN_OPTIONS": "halt_on_error=1:print_stacktrace=1"
}
},
{
"name": "tsan",
"configurePreset": "tsan",
"output": { "outputOnFailure": true },
"filter": { "include": { "name": "_test$|^unit_tests$" } },
"environment": {
"TSAN_OPTIONS": "suppressions=${sourceDir}/tests/tsan.supp"
}
}
]
}