This is an archive of the discontinued LLVM Phabricator instance.

[libc++abi][CMake] Handle build type RelWithDebInfo or MinSizeRel configuration similarly to Release
Needs ReviewPublic

Authored by xingxue on Oct 26 2022, 9:02 AM.

Details

Reviewers
ldionne
MaskRay
phosek
daltenty
Group Reviewers
Restricted Project
Summary

This patch is similar to the change in libunwind (D124912) to make sure assertions are enabled in the build if LIBCXXABI_ENABLE_ASSERTIONS is set (which it is by default), when building in RelWithDebInfo or MinSizeRel configurations.

Diff Detail

Event Timeline

xingxue created this revision.Oct 26 2022, 9:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 26 2022, 9:02 AM
Herald added a subscriber: StephenFan. · View Herald Transcript
xingxue requested review of this revision.Oct 26 2022, 9:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 26 2022, 9:02 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
xingxue updated this revision to Diff 470888.Oct 26 2022, 11:42 AM

Refreshed the patch with context.

MaskRay accepted this revision.Oct 26 2022, 1:51 PM

[libc++abi][CMake] Handle build type RelWithDebInfo configuration similarly to Release

Mention MINSIZEREL as well.

From reading https://github.com/Kitware/CMake/blob/master/Modules/Compiler/GNU.cmake#L58 , I think this makes sense.

xingxue retitled this revision from [libc++abi][CMake] Handle build type RelWithDebInfo configuration similarly to Release to [libc++abi][CMake] Handle build type RelWithDebInfo or MinSizeRel configuration similarly to Release.Oct 26 2022, 3:03 PM
xingxue edited the summary of this revision. (Show Details)

[libc++abi][CMake] Handle build type RelWithDebInfo configuration similarly to Release

Mention MINSIZEREL as well.

From reading https://github.com/Kitware/CMake/blob/master/Modules/Compiler/GNU.cmake#L58 , I think this makes sense.

Changed to mention MinSizeRel as well, thanks!

@ldionne, can you please take a look for #libc_abi? Thanks!

Gentle ping...