BuildSystem: Cleanup CMake code to allow libc only installation

There was no way to just install libc which is required for stdlibc++
This commit is contained in:
2024-06-20 14:32:05 +03:00
parent 1488ec5a03
commit 9e1b5cbaab
82 changed files with 88 additions and 86 deletions

View File

@@ -32,7 +32,7 @@ set(LIBC_SOURCES
)
add_library(libc ${LIBC_SOURCES})
target_compile_options(libc PRIVATE -O2 -g -Wstack-usage=512 -fno-tree-loop-distribute-patterns)
target_compile_options(libc PRIVATE -O2 -g -Wstack-usage=512 -fno-tree-loop-distribute-patterns -nostdlib)
target_compile_options(libc PUBLIC -Wall -Wextra -Werror -Wno-error=stack-usage=)
add_library(crt0 OBJECT arch/${BANAN_ARCH}/crt0.S)
@@ -49,6 +49,6 @@ banan_include_headers(libc ban)
banan_include_headers(libc kernel)
banan_install_headers(libc)
install(TARGETS libc)
install(TARGETS libc OPTIONAL)
set(CMAKE_STATIC_LIBRARY_PREFIX "")