[PATCH] D89260: [gn build] Add libclang_rt.ios.a, libclang_rt.iossim.a to the build

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 12 12:32:39 PDT 2020


thakis created this revision.
thakis added a reviewer: aeubanks.
Herald added subscribers: pengfei, kristof.beyls.
Herald added a project: LLVM.
thakis requested review of this revision.

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.


https://reviews.llvm.org/D89260

Files:
  llvm/utils/gn/build/BUILD.gn
  llvm/utils/gn/build/mac_sdk.gni
  llvm/utils/gn/build/toolchain/BUILD.gn
  llvm/utils/gn/build/toolchain/target_flags.gni
  llvm/utils/gn/secondary/compiler-rt/BUILD.gn
  llvm/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn
  llvm/utils/gn/secondary/compiler-rt/target.gni
  llvm/utils/gn/secondary/llvm/triples.gni

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89260.297664.patch
Type: text/x-patch
Size: 10526 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201012/e44cce2d/attachment.bin>


More information about the llvm-commits mailing list