This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt][sanitizers] build ubsan, asan etc libraries with Mac Catalyst support
ClosedPublic

Authored by thakis on Apr 19 2022, 7:47 PM.

Details

Summary

Like D118875, but for ubsan, asan, etc.

With this, I can successfully run:

bin/clang++ -target x86_64-apple-ios14.0-macabi foo.cc \
    -isysroot $(xcrun -show-sdk-path) -fsanitize=undefined

with a locally built libclang_rt.ubsan_osx_dynamic.dylib.

Diff Detail

Event Timeline

thakis created this revision.Apr 19 2022, 7:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2022, 7:47 PM
thakis requested review of this revision.Apr 19 2022, 7:47 PM
hans accepted this revision.Apr 20 2022, 5:50 AM

lgtm

This revision is now accepted and ready to land.Apr 20 2022, 5:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 20 2022, 6:22 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript

@delcypher This is another catalyst-related change that you probably have internally in some form.