This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Consistent setting of SCUDO_DEBUG
ClosedPublic

Authored by vitalybuka on May 24 2021, 6:36 PM.

Details

Summary

Make sure that if SCUDO_DEBUG=1 in tests
then we had the same in the scudo
library itself.

Diff Detail

Event Timeline

vitalybuka created this revision.May 24 2021, 6:36 PM
vitalybuka requested review of this revision.May 24 2021, 6:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2021, 6:36 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript

remove unneded -O0 change

cryptoad accepted this revision.May 25 2021, 7:55 AM
This revision is now accepted and ready to land.May 25 2021, 7:55 AM
hctim added inline comments.May 25 2021, 10:12 AM
compiler-rt/lib/scudo/standalone/tests/CMakeLists.txt
21

Should we make the unit tests always run with SCUDO_DEBUG? Probably requires creating a RTScudoStandaloneDebug, but that seems ok.

vitalybuka added inline comments.May 25 2021, 10:33 AM
compiler-rt/lib/scudo/standalone/tests/CMakeLists.txt
21

we don't do that for other LLVM stuff, DEBUG is up to the user to on/off
also we already run both version explicitly https://lab.llvm.org/buildbot/#/builders/169/builds/218

hctim accepted this revision.May 25 2021, 10:35 AM

LGTM

This revision was automatically updated to reflect the committed changes.