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:
parent
bb053f137d
commit
7d6612d0e5
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue