diff options
| author | Alexey Gavrilov <alexey.gavrilov@mail.com> | 2026-03-30 17:50:25 +0700 |
|---|---|---|
| committer | Alexey Gavrilov <alexey.gavrilov@mail.com> | 2026-03-30 17:50:25 +0700 |
| commit | e5eb32a5123920d18a55819bcea8a23b3a3e0f4d (patch) | |
| tree | dfd7935ba4e911ba4354b5f611d841769c264c62 /cmake | |
| parent | 256b2c871a0f3ac0175de298b78c6ea527f42f60 (diff) | |
Cmake status information output
Reinforce of compiler, C runtime, architecture checks at cmake
configuration.
Compiler check means continue building at the cmake configure
stage only for supported compilers. Use unsupported compiler
involves immediate build process stopping.
C runtime check means finding of runtime objects. Especially for
*crtbegin.o* and *crtend.o* files.
Architecture means *ObjectiveProject_ARCHITECTURE* variable is set.
That variable configure at toolchain file by default and cannot
override if toolchain file is passed.
TODO
- Image creation
- Build under window platform (optional)
Signed-off-by: Alexey Gavrilov <alexey.gavrilov@mail.com>
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/toolchain/x86_generic_clang.cmake | 1 | ||||
| -rw-r--r-- | cmake/toolchain/x86_generic_gcc.cmake | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/cmake/toolchain/x86_generic_clang.cmake b/cmake/toolchain/x86_generic_clang.cmake index 696568e..23b3b80 100644 --- a/cmake/toolchain/x86_generic_clang.cmake +++ b/cmake/toolchain/x86_generic_clang.cmake @@ -1,6 +1,7 @@ set(CMAKE_SYSTEM_NAME Generic) set(CMAKE_CROSSCOMPILING true) set(CMAKE_SYSTEM_PROCESSOR i686) +set(ObjectiveProject_ARCHITECTURE x86) set(CMAKE_ASM_NASM_OBJECT_FORMAT elf32) diff --git a/cmake/toolchain/x86_generic_gcc.cmake b/cmake/toolchain/x86_generic_gcc.cmake index 8ea769e..a284bb3 100644 --- a/cmake/toolchain/x86_generic_gcc.cmake +++ b/cmake/toolchain/x86_generic_gcc.cmake @@ -1,6 +1,7 @@ set(CMAKE_SYSTEM_NAME Generic) set(CMAKE_CROSSCOMPILING true) set(CMAKE_SYSTEM_PROCESSOR i686) +set(ObjectiveProject_ARCHITECTURE x86) set(CMAKE_ASM_NASM_OBJECT_FORMAT elf32) |
