Repository navigation
Expand file tree
/
Copy pathCMakePresets.json
More file actions
101 lines (101 loc) · 2.37 KB
/
Copy pathCMakePresets.json
File metadata and controls
101 lines (101 loc) · 2.37 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 25,
"patch": 0
},
"configurePresets": [
{
"name": "dev",
"displayName": "Developer build",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "sanitizers",
"displayName": "ASan + UBSan + LSan",
"inherits": "dev",
"binaryDir": "${sourceDir}/build/sanitizers",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-fsanitize=address,undefined -fno-omit-frame-pointer",
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=address,undefined",
"LEDSCRIBE_WARNINGS_AS_ERRORS": "ON"
}
},
{
"name": "gui",
"displayName": "Qt Widgets editor",
"inherits": "dev",
"binaryDir": "${sourceDir}/build/gui",
"cacheVariables": {
"LEDSCRIBE_BUILD_GUI": "ON",
"BUILD_TESTING": "ON"
}
},
{
"name": "gui-sanitizers",
"displayName": "Qt Widgets editor with sanitizers",
"inherits": "sanitizers",
"binaryDir": "${sourceDir}/build/gui-sanitizers",
"cacheVariables": {
"LEDSCRIBE_BUILD_GUI": "ON",
"BUILD_TESTING": "ON"
}
}
],
"buildPresets": [
{
"name": "dev",
"configurePreset": "dev"
},
{
"name": "sanitizers",
"configurePreset": "sanitizers"
},
{
"name": "gui",
"configurePreset": "gui"
},
{
"name": "gui-sanitizers",
"configurePreset": "gui-sanitizers"
}
],
"testPresets": [
{
"name": "dev",
"configurePreset": "dev",
"output": {
"outputOnFailure": true
}
},
{
"name": "sanitizers",
"configurePreset": "sanitizers",
"environment": {
"ASAN_OPTIONS": "detect_leaks=1:halt_on_error=1:strict_string_checks=1",
"LSAN_OPTIONS": "exitcode=23:report_objects=1",
"UBSAN_OPTIONS": "halt_on_error=1:print_stacktrace=1"
},
"output": {
"outputOnFailure": true
}
},
{
"name": "gui",
"configurePreset": "gui",
"output": { "outputOnFailure": true }
},
{
"name": "gui-sanitizers",
"inherits": "sanitizers",
"configurePreset": "gui-sanitizers"
}
]
}