File size: 2,826 Bytes
2d66860 | 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 | {
"version": 6,
"configurePresets": [
{
"name": "base",
"hidden": true,
"cacheVariables": {
"CMAKE_PRESET": "True"
}
},
{
"name": "default",
"inherits": "debug",
"displayName": "Default",
"binaryDir": "${sourceDir}/build"
},
{
"name": "debug",
"inherits": "base",
"displayName": "Debug",
"binaryDir": "${sourceDir}/build-dbg",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_FLAGS_DEBUG": "-Og -ggdb -fno-inline -fno-omit-frame-pointer -fno-optimize-sibling-calls",
"CMAKE_CXX_FLAGS_DEBUG": "-Og -ggdb -fno-inline -fno-omit-frame-pointer -fno-optimize-sibling-calls"
}
},
{
"name": "sanitize",
"inherits": "debug",
"displayName": "Debug with Sanitizers",
"binaryDir": "${sourceDir}/build-san",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Sanitize",
"SANITIZE": "address,undefined",
"CMAKE_C_FLAGS_DEBUG": "-O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls",
"CMAKE_CXX_FLAGS_DEBUG": "-O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls"
}
},
{
"name": "sanitize_mem",
"inherits": "sanitize",
"displayName": "Debug with MemorySanitizer",
"binaryDir": "${sourceDir}/build-memsan",
"cacheVariables": {
"SANITIZE": "memory",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++"
}
},
{
"name": "optdbg",
"inherits": "base",
"displayName": "Release with debug info",
"binaryDir": "${sourceDir}/build-optdbg",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_CXX_FLAGS_RELWITHDEBINFO": "-O3 -ggdb -fno-omit-frame-pointer -fno-optimize-sibling-calls",
"CMAKE_C_FLAGS_RELWITHDEBINFO": "-O3 -ggdb -fno-omit-frame-pointer -fno-optimize-sibling-calls"
}
},
{
"name": "release",
"inherits": "base",
"displayName": "Release",
"binaryDir": "${sourceDir}/build-rel",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_FLAGS_RELEASE": "-O3",
"CMAKE_C_FLAGS_RELEASE": "-O3"
}
},
{
"name": "lto",
"inherits": "release",
"binaryDir": "${sourceDir}/build-lto",
"generator": "Unix Makefiles",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"YOSYS_WITH_PYTHON": "false",
"YOSYS_INSTALL_PYTHON": "false",
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_INTERPROCEDURAL_OPTIMIZATION": "ON",
"CMAKE_EXE_LINKER_FLAGS": "-fuse-ld=lld",
"CMAKE_SHARED_LINKER_FLAGS": "-fuse-ld=lld",
"CMAKE_MODULE_LINKER_FLAGS": "-fuse-ld=lld"
}
}
]
}
|