release-gcc build preset
This commit is contained in:
@@ -4,6 +4,7 @@ project(casm)
|
|||||||
|
|
||||||
enable_language(ASM_NASM)
|
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)
|
add_executable(casm asm.asm c.c)
|
||||||
@@ -12,6 +12,25 @@
|
|||||||
"CMAKE_CXX_COMPILER": "/usr/bin/g++",
|
"CMAKE_CXX_COMPILER": "/usr/bin/g++",
|
||||||
"CMAKE_BUILD_TYPE": "Debug"
|
"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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user