This is an archive of the discontinued LLVM Phabricator instance.

[gn build] Add libclang_rt.ios.a, libclang_rt.iossim.a to the build
ClosedPublic

Authored by thakis on Oct 12 2020, 12:32 PM.

Details

Summary

It's built with just-built clang, like all other compiler-rt parts
in the GN build.

This requires adding some cross build support to the mac toolchain.

Also add explicit mmacosx-version-min and miphoneos-version-min
flags to the build.

ios.a is only built with the arm64 slice, iossim.a only with the
x86_64 slice for now. (The latter should maybe become host_cpu
when Arm Macs become a common iOS development platform.)

With this, it's possible to build chromium/iOS with a GN-built LLVM.

Diff Detail

Event Timeline

thakis created this revision.Oct 12 2020, 12:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 12 2020, 12:32 PM
thakis requested review of this revision.Oct 12 2020, 12:32 PM
aeubanks accepted this revision.Oct 12 2020, 1:14 PM
aeubanks added inline comments.
llvm/utils/gn/build/BUILD.gn
70

compiler-rt/cmake/config-ix.cmake sets this to 10.10, do we want to be different from that?

This revision is now accepted and ready to land.Oct 12 2020, 1:14 PM
thakis marked an inline comment as done.Oct 12 2020, 1:16 PM
thakis added inline comments.
llvm/utils/gn/build/BUILD.gn
70

Huh, no idea where I got 10.9 from. Thanks, fixed.

This revision was automatically updated to reflect the committed changes.
thakis marked an inline comment as done.