-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
121 lines (119 loc) · 4.22 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
{
"version": 3,
"configurePresets": [
{
"name": "clang-base",
"hidden": true,
"displayName": "Clang 14.0.0 x86_64-pc-linux-gnu",
"description": "Using compilers: C = /usr/bin/clang, CXX = /usr/bin/clang++",
"binaryDir": "${sourceDir}/build/",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install/",
"CMAKE_C_COMPILER": "/usr/bin/clang",
"CMAKE_CXX_COMPILER": "/usr/bin/clang++",
"CMAKE_EXPORT_COMPILE_COMMANDS": "YES",
"CMAKE_EXE_LINKER_FLAGS": "-fuse-ld=lld",
"CMAKE_SHARED_LINKER_FLAGS": "-fuse-ld=lld"
}
},
{
"name": "clang-debug",
"displayName": "Clang 14.0.0 x86_64-pc-linux-gnu",
"description": "Using compilers: C = /usr/bin/clang, CXX = /usr/bin/clang++",
"inherits": "clang-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_STANDARD": "20",
"CMAKE_CXX_STANDARD_REQUIRED": "ON"
}
},
{
"name": "clang-release",
"displayName": "Clang 14.0.0 x86_64-pc-linux-gnu Release",
"inherits": "clang-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "clang-debug-test",
"displayName": "Clang 14.0.0 x86_64-pc-linux-gnu Debug Tests",
"inherits": "clang-debug",
"cacheVariables": {
"BUILD_ESLF_TESTS": "ON",
"CMAKE_CXX_FLAGS": "-O0 -g -Werror -Wextra -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-private-field",
"EXPOSE_COVERAGE_TARGET": "ON"
}
},
{
"name": "clang-debug-test-ASAN",
"displayName": "Clang 14.0.0 x86_64-pc-linux-gnu Debug Tests Enabled ASAN Enabled",
"inherits": "clang-debug-test",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-O0 -g -fsanitize=address -fno-omit-frame-pointer -fcxx-exceptions",
"CMAKE_LINKER_FLAGS": "-fno-omit-frame-pointer -fsanitize=address -fcxx-exceptions"
}
}
],
"buildPresets": [
{
"name": "ELSF",
"description": "",
"displayName": ""
},
{
"name": "ELSFTest",
"description": "",
"displayName": "",
"configurePreset": "clang-debug-test",
"environment": {
//"LSAN_OPTIONS": "verbosity=1:log_threads=1"
}
},
{
"name": "ELSFTestASAN",
"description": "",
"displayName": "",
"configurePreset": "clang-debug-test-ASAN",
"environment": {
"LSAN_OPTIONS": "verbosity=1:detect_leaks=1",
"ASAN_OPTIONS": "verbosity=1:detect_leaks=1:halt_on_error=1:detect_stack_use_after_return=1:symbolize=1:log_path=asan.log"
}
}
],
"testPresets": [
{
"name": "ELSFTests",
"description": "",
"displayName": "Test Preset",
"execution": {
"stopOnFailure": true
},
"output": {
"outputOnFailure": true,
"verbosity": "verbose"
},
"configurePreset": "clang-debug-test",
"environment": {
//"LSAN_OPTIONS": "verbosity=1:log_threads=1"
}
},
{
"name": "ELSFTestsASAN",
"description": "",
"displayName": "Test Preset With ASAN",
"execution": {
"stopOnFailure": true
},
"output": {
"outputOnFailure": true,
"verbosity": "verbose"
},
"configurePreset": "clang-debug-test-ASAN",
"environment": {
"LSAN_OPTIONS": "detect_leaks=1",
"ASAN_OPTIONS": "verbosity=1:detect_leaks=1:halt_on_error=1:detect_stack_use_after_return=1:symbolize=1"
}
}
]
}