This is an archive of the discontinued LLVM Phabricator instance.

[libc++][hardening][NFC] Remove the `LIBCXX_DEBUG_BUILD` CMake variable.
ClosedPublic

Authored by var-const on Jul 11 2023, 8:19 PM.

Details

Summary

It's no longer necessary to define _DEBUG because we use our own
internal assertion mechanism in libc++.

Diff Detail

Event Timeline

var-const created this revision.Jul 11 2023, 8:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 11 2023, 8:19 PM
var-const requested review of this revision.Jul 11 2023, 8:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 11 2023, 8:19 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne accepted this revision.Jul 12 2023, 10:10 AM
ldionne added a subscriber: ldionne.

LGTM w/ comment.

libcxx/CMakeLists.txt
482–483

Can you move this closer to the first use of the variable?

This revision is now accepted and ready to land.Jul 12 2023, 10:10 AM
var-const marked an inline comment as done.

Address the comment

This revision was landed with ongoing or failed builds.Jul 12 2023, 10:16 AM
This revision was automatically updated to reflect the committed changes.