This is an archive of the discontinued LLVM Phabricator instance.

gn build: Add support for building the standalone ubsan runtime as a shared library on non-Mac.
ClosedPublic

Authored by pcc on Jun 10 2022, 9:05 PM.

Diff Detail

Event Timeline

pcc created this revision.Jun 10 2022, 9:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2022, 9:05 PM
Herald added a subscriber: Enna1. · View Herald Transcript
pcc requested review of this revision.Jun 10 2022, 9:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2022, 9:05 PM
thakis accepted this revision.Jun 13 2022, 11:56 AM

lg, please watch http://45.33.8.238/ after landing (especially the non-linux bots)

llvm/utils/gn/secondary/compiler-rt/lib/ubsan/BUILD.gn
140

Should this be gated on !is_mac && !is_win or similar?

This revision is now accepted and ready to land.Jun 13 2022, 11:56 AM
pcc added inline comments.Jun 13 2022, 1:09 PM
llvm/utils/gn/secondary/compiler-rt/lib/ubsan/BUILD.gn
140

Yes, but with my changes to lib/BUILD.gn we weren't building this for Windows with this patch. I'll change lib/BUILD.gn to try building for Windows before I submit and roll that back if it doesn't work.

This revision was landed with ongoing or failed builds.Jun 13 2022, 1:16 PM
This revision was automatically updated to reflect the committed changes.
pcc reopened this revision.Jun 13 2022, 4:17 PM
This revision is now accepted and ready to land.Jun 13 2022, 4:17 PM
pcc updated this revision to Diff 436599.Jun 13 2022, 4:18 PM
pcc edited the summary of this revision. (Show Details)

Fix Mac build

pcc added a subscriber: aeubanks.Sep 29 2022, 9:36 PM

Looks like this never got approved and a different set of patches landed instead which didn't include shared library support :(

pcc updated this revision to Diff 464139.Sep 29 2022, 10:04 PM
pcc retitled this revision from gn build: Add support for building the standalone ubsan runtime. to gn build: Add support for building the standalone ubsan runtime as a shared library on non-Mac..

Rebased this patch by first reverting the other ubsan patches

This revision was landed with ongoing or failed builds.Sep 30 2022, 12:33 PM
This revision was automatically updated to reflect the committed changes.