libcxxabi.cmake: fix build error

This tries to mirror the following change.
```
commit c260fee516
Author: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
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 <gustavo.nihei@espressif.com>
```
This commit is contained in:
YAMAMOTO Takashi 2024-01-04 17:05:51 +09:00 committed by Xiang Xiao
parent bb053f137d
commit 7d6612d0e5
1 changed files with 3 additions and 0 deletions

View File

@ -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})