This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] separate lsan, ubsan, stats configuration from SANITIZER_COMMON_SUPPORTED_OS
ClosedPublic

Authored by aralisza on Nov 8 2021, 5:21 PM.

Details

Summary

Currently, SANITIZER_COMMON_SUPPORTED_OS is being used to enable many libraries.
Unfortunately this makes it impossible to selectively disable a library based on the OS.
This patch removes this limitation by adding a separate list of supported OSs for the lsan, ubsan, ubsan_minimal, and stats libraries.

Diff Detail

Event Timeline

aralisza created this revision.Nov 8 2021, 5:21 PM
aralisza requested review of this revision.Nov 8 2021, 5:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 8 2021, 5:21 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
aralisza retitled this revision from [compiler-rt] separate lsan, ubsan, stats configuration from sanitizer_common to [compiler-rt] separate lsan, ubsan, stats configuration from SANITIZER_COMMON_SUPPORTED_OS.
aralisza edited the summary of this revision. (Show Details)
aralisza updated this revision to Diff 385668.Nov 8 2021, 6:04 PM

mimic existing code instead of copying SANITIZER_COMMON_SUPPORTED_OS

aralisza edited the summary of this revision. (Show Details)Nov 8 2021, 6:06 PM
aralisza updated this revision to Diff 386000.Nov 9 2021, 3:58 PM

add convert ubsan (non-minimal) to use UBSAN_SUPPORTED_OS as well

delcypher accepted this revision.Nov 10 2021, 4:56 PM

You probably need to mention the ubsan runtime library in your commit message. Other than that LGTM.

This revision is now accepted and ready to land.Nov 10 2021, 4:56 PM
aralisza edited the summary of this revision. (Show Details)Nov 10 2021, 7:08 PM
This revision was landed with ongoing or failed builds.Nov 10 2021, 7:16 PM
This revision was automatically updated to reflect the committed changes.