Barto22 opened a new pull request, #17826:
URL: https://github.com/apache/nuttx/pull/17826

   ## Summary
   
   This PR introduces initial support for **LLVM libc++ and libc++abi 
(v21.1.8)** in NuttX. It enables C++23-compatible standard library components 
including new language features and exception handling. The integration is 
currently limited to basic operation and does not yet include threading or 
mutex support.
   
   Configurations for testing have been added for:
   
   - `stm32f4discovery:testlibcxx`
   - `esp32c3-devkit:testlibcxx`
   
   ## Impact
   
   This adds optional support for a modern C++ standard library implementation 
and improves compatibility with toolchains that prefer or require libc++ over 
libstdc++.
   
   At this stage:
   
   - **Runtime / ABI:** basic C++ exception handling is functional
   - **Threading:** thread and mutex support is not yet implemented
   - **Compatibility:** existing C++ support (GNU libstdc++) is unaffected
   - **Build systems:** tested with both `make` and `cmake`
   - **Documentation:** serves as a foundation for future libc++ enablement and 
enhancements
   
   No impact to existing boards or applications unless explicitly enabling the 
new configurations.
   
   ## Testing
   
   **Host machine:** Linux x86_64
   
   **Boards / Configurations tested:**
   - `stm32f4discovery:testlibcxx`
   - `esp32c3-devkit:testlibcxx`
   
   **Toolchains used:**
   - ARM GCC **15.2.rel1**
   - RISC-V GCC **15.2.0**
   
   **Procedure:**
   - Built using both `make` and `cmake`
   - Verified exception handling through sample test cases
   - Confirmed basic standard library functionality
   - Validated that non-libc++ configurations continue to build successfully
   
   **Current status:**
   - Basic libc++ functionality works as expected
   - Exception handling verified
   - No regressions observed
   - Threading/mutex support not yet implemented
   
   Logs and additional validation data can be provided upon request.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to