release-gcc build preset

This commit is contained in:
Пытков Роман
2025-09-20 21:11:08 +03:00
parent d7cb83d869
commit c8c5518597
2 changed files with 21 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ project(casm)
enable_language(ASM_NASM)
set(CMAKE_ASM_NASM_FLAGS "-gdwarf -f elf64")
set(CMAKE_ASM_NASM_FLAGS "-f elf64")
set(CMAKE_ASM_NASM_FLAGS_DEBUG "-gdwarf")
add_executable(casm asm.asm c.c)

View File

@@ -12,6 +12,25 @@
"CMAKE_CXX_COMPILER": "/usr/bin/g++",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "release-gcc",
"description": "",
"displayName": "",
"inherits": [
"debug-gcc"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
}
],
"buildPresets": [
{
"name": "release-gcc",
"description": "",
"displayName": "",
"configurePreset": "release-gcc"
}
]
}