compiler/vm/host 尚未成库,避免 configure 失败。 Co-authored-by: Cursor <cursoragent@cursor.com>
49 lines
1022 B
JSON
49 lines
1022 B
JSON
{
|
||
"version": 3,
|
||
"cmakeMinimumRequired": {
|
||
"major": 3,
|
||
"minor": 21,
|
||
"patch": 0
|
||
},
|
||
"configurePresets": [
|
||
{
|
||
"name": "gcc",
|
||
"hidden": true,
|
||
"generator": "Ninja",
|
||
"binaryDir": "${sourceDir}/build/${presetName}",
|
||
"cacheVariables": {
|
||
"CMAKE_C_COMPILER": "gcc",
|
||
"CMAKE_CXX_COMPILER": "g++"
|
||
}
|
||
},
|
||
{
|
||
"name": "gcc-debug",
|
||
"displayName": "GCC Debug",
|
||
"description": "使用 PATH 中的 gcc / g++,Debug",
|
||
"inherits": "gcc",
|
||
"cacheVariables": {
|
||
"CMAKE_BUILD_TYPE": "Debug"
|
||
}
|
||
},
|
||
{
|
||
"name": "gcc-release",
|
||
"displayName": "GCC Release",
|
||
"description": "使用 PATH 中的 gcc / g++,Release",
|
||
"inherits": "gcc",
|
||
"cacheVariables": {
|
||
"CMAKE_BUILD_TYPE": "Release"
|
||
}
|
||
}
|
||
],
|
||
"buildPresets": [
|
||
{
|
||
"name": "gcc-debug",
|
||
"configurePreset": "gcc-debug"
|
||
},
|
||
{
|
||
"name": "gcc-release",
|
||
"configurePreset": "gcc-release"
|
||
}
|
||
]
|
||
}
|