This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Don't automatically define LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS with libcxxrt
ClosedPublic

Authored by ldionne on Jun 14 2023, 3:26 PM.

Details

Summary

libcxxrt is only used on FreeBSD and the FreeBSD CMake cache already
sets LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS to ON, as it should. This
avoids defining LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS redundantly in
a place where it doesn't belong.

Diff Detail

Event Timeline

ldionne created this revision.Jun 14 2023, 3:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2023, 3:26 PM
ldionne requested review of this revision.Jun 14 2023, 3:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2023, 3:26 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
emaste added a subscriber: dim.Jun 14 2023, 4:53 PM
emaste added a reviewer: dim.Jun 14 2023, 4:57 PM
dim accepted this revision.Jun 15 2023, 4:51 AM

Ah I see that I added the part to HandleLibCXXABI.cmake in rG328261019f50a76b11fa625739cbf32ceb2ce2f7, while also adding an initial version of libcxx/cmake/caches/FreeBSD.cmake. If the latter is now automatically used during the build, the HandleLibCXXABI.cmake part is no longer necessary.

emaste accepted this revision.Jun 15 2023, 6:44 AM
ldionne accepted this revision.Jun 15 2023, 8:23 AM
This revision is now accepted and ready to land.Jun 15 2023, 8:23 AM