From 378972285342f52bb71822d87ba261b76b4a42ed Mon Sep 17 00:00:00 2001 From: Alexey Gavrilov Date: Sat, 28 Mar 2026 14:55:53 +0700 Subject: Cmake build type at the generation stage Fix in *nasm* files - set architecture bitness. Move compiler flags from *toolchain* file to *requirements target* considering cmake files. This solution allows available of multi-configurations generators to pass compiler options without affecting on single-configuration generators. TODO - Debug information - Image creation - Build under window platform (optional) Signed-off-by: Alexey Gavrilov --- cmake/toolchain/x86_generic_gcc.cmake | 2 -- 1 file changed, 2 deletions(-) (limited to 'cmake/toolchain/x86_generic_gcc.cmake') diff --git a/cmake/toolchain/x86_generic_gcc.cmake b/cmake/toolchain/x86_generic_gcc.cmake index 138bc45..8ea769e 100644 --- a/cmake/toolchain/x86_generic_gcc.cmake +++ b/cmake/toolchain/x86_generic_gcc.cmake @@ -6,5 +6,3 @@ set(CMAKE_ASM_NASM_OBJECT_FORMAT elf32) set(CMAKE_CXX_COMPILER i686-elf-g++) set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) - -set(CMAKE_CXX_FLAGS_DEBUG_INIT "-Wextra -ggdb -g3 -O0") -- cgit v1.2.3