LibC: Compile without exceptions

This allows libc to not require __gxx_personality_v0. I can maybe add
C++ back to libc... :D I don't know why I did not research earlier what
this symbols was used for
This commit is contained in:
Bananymous 2024-07-31 23:33:41 +03:00
parent 10ce03a1e7
commit edc30cd71d
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ set(LIBC_SOURCES
)
add_library(libc ${LIBC_SOURCES})
target_compile_options(libc PRIVATE -O2 -g -Wstack-usage=512 -fno-tree-loop-distribute-patterns -nostdlib)
target_compile_options(libc PRIVATE -O2 -g -Wstack-usage=512 -fno-tree-loop-distribute-patterns -fno-exceptions -nostdlib)
target_compile_options(libc PUBLIC -Wall -Wextra -Werror -Wno-error=stack-usage=)
function(add_crtx crtx)