From 7d6612d0e53fdff882fa7bf61e0892287bcd78d3 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 4 Jan 2024 17:05:51 +0900 Subject: [PATCH] libcxxabi.cmake: fix build error This tries to mirror the following change. ``` commit c260fee5163cdd3d7eb01576f606e83dcf6f7808 Author: Gustavo Henrique Nihei Date: Tue Aug 31 14:47:13 2021 -0300 libs/libxx: Enforce RTTI for building libcxxabi It is okay for the application to be built without RTTI (-fno-rrti), but libcxxabi requires RTTI at least for the library. Signed-off-by: Gustavo Henrique Nihei ``` --- libs/libxx/libcxxabi.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/libxx/libcxxabi.cmake b/libs/libxx/libcxxabi.cmake index fb4589d020..63bd3f7b00 100644 --- a/libs/libxx/libcxxabi.cmake +++ b/libs/libxx/libcxxabi.cmake @@ -99,4 +99,7 @@ foreach(src ${SRCS}) list(APPEND TARGET_SRCS ${src}) endforeach() +# RTTI is required for building the libcxxabi library +target_compile_options(libcxxabi PRIVATE -frtti) + target_sources(libcxxabi PRIVATE ${TARGET_SRCS})