添加 GCC CMake presets,顶层先只编 isa。
compiler/vm/host 尚未成库,避免 configure 失败。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+3
-3
@@ -10,6 +10,6 @@ project(Stator
|
|||||||
include("${CMAKE_SOURCE_DIR}/cmake/Standards.cmake")
|
include("${CMAKE_SOURCE_DIR}/cmake/Standards.cmake")
|
||||||
|
|
||||||
add_subdirectory(isa)
|
add_subdirectory(isa)
|
||||||
add_subdirectory(compiler)
|
# add_subdirectory(compiler)
|
||||||
add_subdirectory(vm)
|
# add_subdirectory(vm)
|
||||||
add_subdirectory(host)
|
# add_subdirectory(host)
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user