diff --git a/casm/CMakeLists.txt b/casm/CMakeLists.txt index 65dade7..48c399c 100644 --- a/casm/CMakeLists.txt +++ b/casm/CMakeLists.txt @@ -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) \ No newline at end of file diff --git a/casm/CMakePresets.json b/casm/CMakePresets.json index 7d59c37..3da2132 100644 --- a/casm/CMakePresets.json +++ b/casm/CMakePresets.json @@ -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" } ] } \ No newline at end of file