[all-commits] [llvm/llvm-project] 4a96b2: [gn build] Add libclang_rt.ios.a, libclang_rt.ioss...

Nico Weber via All-commits all-commits at lists.llvm.org
Mon Oct 12 13:21:53 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a96b2e75f6db5b6f51febdd2ee559bacb7833b7
      https://github.com/llvm/llvm-project/commit/4a96b2e75f6db5b6f51febdd2ee559bacb7833b7
  Author: Nico Weber <thakis at chromium.org>
  Date:   2020-10-12 (Mon, 12 Oct 2020)

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

  Log Message:
  -----------
  [gn build] Add libclang_rt.ios.a, libclang_rt.iossim.a to the build

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.

Differential Revision: https://reviews.llvm.org/D89260




More information about the All-commits mailing list