This is an archive of the discontinued LLVM Phabricator instance.

[libc] Disable rtti/expections
ClosedPublic

Authored by gchatelet on Feb 3 2022, 4:38 AM.

Details

Summary

llvm-libc exhibits a C interface but its source is C++.
This patch explicitly disables the use of exceptions and RTTI when compiling the entrypoints.

Diff Detail

Event Timeline

gchatelet created this revision.Feb 3 2022, 4:38 AM
gchatelet requested review of this revision.Feb 3 2022, 4:38 AM
gchatelet added inline comments.Feb 3 2022, 4:42 AM
libc/cmake/modules/LLVMLibCObjectRules.cmake
16

This is cloned from LLVM' llvm_update_compile_flags but I'm not sure we want to support IBM's compiler at this point.

sivachandra accepted this revision.Feb 7 2022, 9:05 AM
sivachandra added inline comments.
libc/cmake/modules/LLVMLibCObjectRules.cmake
16

Up to you. We don't have any testing planned in the near future so it will be just bit rot.

This revision is now accepted and ready to land.Feb 7 2022, 9:05 AM
gchatelet updated this revision to Diff 406748.Feb 8 2022, 2:39 AM

Remove XL compiler flags and rebase

This revision was landed with ongoing or failed builds.Feb 8 2022, 2:46 AM
This revision was automatically updated to reflect the committed changes.
gchatelet marked an inline comment as done.