skia2/toolchain
Kevin Lubick cc91f7d709 [bazel] Fix toolchains on M1 Mac
These changes are necessary to use the toolchain on both the
M1 Mac and Intel Macs.

This adds a way to detect the host platform and choose different
compile options in the toolchain.

We cannot statically link in libc++.a from the clang zip because
it appears to be x64 only.

Finally, this fixes copts not being passed to objective c libraries.

Known issue:
 - Intel Mac building has an error about the default CC toolchain.

Change-Id: Ie8e5e83dc41513563ac684e70a8a6947b36df445
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/552472
Reviewed-by: Jorge Betancourt <jmbetancourt@google.com>
2022-06-27 14:02:49 +00:00
..
linux_trampolines Reland "[bazel] Update to v5.2.0" 2022-06-21 18:49:10 +00:00
mac_trampolines [bazel] Add support for Macs to make Linux RBE builds 2022-06-23 12:00:43 +00:00
BUILD.bazel [bazel] Add support for Macs to make Linux RBE builds 2022-06-23 12:00:43 +00:00
download_linux_amd64_toolchain.bzl [bazel] Add support for Macs to make Linux RBE builds 2022-06-23 12:00:43 +00:00
download_mac_toolchain.bzl [bazel] Add support for Macs to make Linux RBE builds 2022-06-23 12:00:43 +00:00
download_toolchains.bzl [bazel] Add support for Macs to make Linux RBE builds 2022-06-23 12:00:43 +00:00
linux_amd64_toolchain_config.bzl [bazel] Re-implement IWYU enforcement 2022-06-06 14:29:47 +00:00
mac_toolchain_config.bzl [bazel] Fix toolchains on M1 Mac 2022-06-27 14:02:49 +00:00
utils.bzl [bazel] Add support for Macs to make Linux RBE builds 2022-06-23 12:00:43 +00:00