-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakePresets.json
More file actions
42 lines (42 loc) · 1.32 KB
/
CMakePresets.json
File metadata and controls
42 lines (42 loc) · 1.32 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
{
"version": 1,
"cmakeMinimumRequired": {
"major": 3,
"minor": 19,
"patch": 0
},
"configurePresets": [
{
"name": "asan",
"displayName": "Enable address sanitization",
"description": "Build using Unix Makefiles (with address sanitization)",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_C_FLAGS": "-fsanitize=address",
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=address",
"CMAKE_SHARED_LINKER_FLAGS": "-fsanitize=address"
}
},
{
"name": "add-warn",
"displayName": "Additional compiler warnings",
"description": "Build using Unix Makefiles (with additional compiler warnings)",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_C_FLAGS": "-Wall -Wextra -pedantic"
}
},
{
"name": "math-opt",
"displayName": "Optimized math",
"description": "Optimized math (AVX & auto-vectorization) using Unix Makefiles",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_C_FLAGS": "-mavx -mfma -ffast-math -ftree-vectorize -ftree-vectorizer-verbose=7 -fopt-info-vec-missed -fopt-info-loop-optimized -fopt-info-vec-all"
}
}
]
}