This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 7d6612d0e53fdff882fa7bf61e0892287bcd78d3
Author: YAMAMOTO Takashi <[email protected]>
AuthorDate: Thu Jan 4 17:05:51 2024 +0900

    libcxxabi.cmake: fix build error
    
    This tries to mirror the following change.
    ```
    commit c260fee5163cdd3d7eb01576f606e83dcf6f7808
    Author: Gustavo Henrique Nihei <[email protected]>
    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 <[email protected]>
    ```
---
 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})

Reply via email to