Repository navigation
Expand file tree
/
Copy pathCMakePresets.json
More file actions
65 lines (65 loc) · 1.99 KB
/
Copy pathCMakePresets.json
File metadata and controls
65 lines (65 loc) · 1.99 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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 22
},
"configurePresets": [
{
"name": "default-config",
"description": "Default configuration, used by tooling for simple build checks",
"binaryDir": "build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_C_FLAGS": "-Werror",
"CMAKE_CXX_FLAGS": "-Werror",
"KLEIDIAI_BUILD_TESTS": "ON",
"KLEIDIAI_BUILD_BENCHMARK": "ON"
}
},
{
"name": "default-debug",
"description": "Default debug configuration which enables minimal set of sanitizers",
"inherits": "default-config",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_FLAGS":
"-g -fsanitize=address,undefined -fno-sanitize-address-use-odr-indicator -fno-omit-frame-pointer -fno-common",
"CMAKE_CXX_FLAGS":
"-g -fsanitize=address,undefined -fno-sanitize-address-use-odr-indicator -fno-omit-frame-pointer -fno-common",
"CMAKE_EXE_LINKER_FLAGS":
"-fsanitize=address,undefined -fno-sanitize-address-use-odr-indicator -Wlto-type-mismatch"
}
},
{
"name": "semihosted",
"description": "Semihosted build using bare-metal toolchain",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}",
"toolchainFile": "${sourceDir}/cmake/toolchains/aarch64-none-elf.toolchain.cmake",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"KLEIDIAI_BUILD_TESTS": "OFF",
"KLEIDIAI_BUILD_BENCHMARK": "ON",
"KLEIDIAI_SEMIHOSTED": "ON",
"KLEIDIAI_BUILD_EXPERIMENTAL_OPS": "OFF"
}
}
],
"buildPresets": [
{
"name": "default-build",
"configurePreset": "default-config",
"configuration": "Release"
},
{
"name": "default-debug",
"configurePreset": "default-debug",
"configuration": "Debug"
},
{
"name": "semihosted",
"configurePreset": "semihosted"
}
]
}