diff options
| author | Alexey Gavrilov <alexey.gavrilov@mail.com> | 2026-03-28 14:55:53 +0700 |
|---|---|---|
| committer | Alexey Gavrilov <alexey.gavrilov@mail.com> | 2026-03-28 14:55:53 +0700 |
| commit | 378972285342f52bb71822d87ba261b76b4a42ed (patch) | |
| tree | 20ac43a02dce05e09272865f961f2e3decceda1f /libgcc | |
| parent | c62baf8bca986d493e1caf441ea7a6b9d1c1823f (diff) | |
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 <alexey.gavrilov@mail.com>
Diffstat (limited to 'libgcc')
| -rw-r--r-- | libgcc/x86/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libgcc/x86/CMakeLists.txt b/libgcc/x86/CMakeLists.txt index 2a1bec9..8b2eb67 100644 --- a/libgcc/x86/CMakeLists.txt +++ b/libgcc/x86/CMakeLists.txt @@ -4,6 +4,9 @@ target_sources(CRTIBUNDLE PRIVATE ${CMAKE_CURRENT_LIST_DIR}/crti.nasm $<TARGET_OBJECTS:CRTBEGIN> ) +target_link_libraries(CRTIBUNDLE PUBLIC + ASM_NASM_COMPILER_REQUIREMENTS +) target_link_libraries(CRTI INTERFACE CRTIBUNDLE) add_library(CRTN INTERFACE) @@ -12,4 +15,7 @@ target_sources(CRTNBUNDLE PRIVATE ${CMAKE_CURRENT_LIST_DIR}/crtn.nasm $<TARGET_OBJECTS:CRTEND> ) +target_link_libraries(CRTNBUNDLE PUBLIC + ASM_NASM_COMPILER_REQUIREMENTS +) target_link_libraries(CRTN INTERFACE CRTNBUNDLE) |
