From edc30cd71d83aeee9f5666c60051fbde602d6dba Mon Sep 17 00:00:00 2001 From: Bananymous Date: Wed, 31 Jul 2024 23:33:41 +0300 Subject: [PATCH] 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 --- userspace/libraries/LibC/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/libraries/LibC/CMakeLists.txt b/userspace/libraries/LibC/CMakeLists.txt index 1c6036eb13..e6ec4442c2 100644 --- a/userspace/libraries/LibC/CMakeLists.txt +++ b/userspace/libraries/LibC/CMakeLists.txt @@ -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)