platform_build_soong/cc/config
Dan Willemsen 6ba5367a70 Fix long mac test times; only initialize host settings once
It looks like sometime in late February our Mac builds started taking
~10 minutes longer than before. On my local workstation the Soong tests
were taking >25 minutes before completing (likely because I don't have
the older SDKs installed, and we iterate from older to newer to find the
oldest installed SDK).

Most of this time was spend running the `xcrun` tools to interrogate the
system about which Mac SDKs are installed and where the tools are. This
will never change during any build or test, so wrap it all in a
sync.Once so that we only ever call them once.

And remove the macSdkPath variable, which has been unused for years and
no longer works (as we don't allow the use of xcode-select during the
build).

Bug: 153010389
Test: prebuilts/build-tools/build-prebuilts.sh on a Mac
Change-Id: I39b2d49739e628e4c11bec4805b25039115d2fd0
2020-04-01 14:44:58 -07:00
..
OWNERS Add OWNERS for cc/config/vndk.go 2020-01-17 11:23:14 -08:00
arm64_device.go Add -z separate-code to default ARM64 device flags 2020-03-03 16:09:08 +00:00
arm64_fuchsia_device.go Support building for Fuchsia. 2019-01-24 18:59:29 +00:00
arm_device.go Add missing cortex-a76 arm configuration 2019-09-12 18:37:45 +02:00
cfi_exports.map Revert "Revert "Build system changes for CFI (Soong)"" 2017-11-01 12:50:01 -07:00
clang.go Remove unused mips workarounds. 2020-03-06 18:15:44 -08:00
global.go Switch from clang-r377782b to clang-r377782c. 2020-03-12 10:09:36 -07:00
integer_overflow_blacklist.txt Add integer_overflow sanitization build option. 2017-07-07 09:52:23 -07:00
tidy.go Add bugprone to global clang-tidy default checks 2020-03-03 12:05:22 -08:00
tidy_test.go Add clang-tidy support 2016-10-31 16:21:01 -07:00
toolchain.go Add the cc_fuzz target. 2019-07-16 16:30:53 -07:00
vndk.go Revert "Another round of no-vendor-variant VNDK whitelist cleanup" 2020-02-19 06:17:51 +00:00
x86_64_device.go Stop defining unused USE_SSSE3. 2019-07-12 22:40:45 -07:00
x86_64_fuchsia_device.go Stop defining unused USE_SSSE3. 2019-07-12 22:40:45 -07:00
x86_darwin_host.go Fix long mac test times; only initialize host settings once 2020-04-01 14:44:58 -07:00
x86_device.go Stop defining unused USE_SSSE3. 2019-07-12 22:40:45 -07:00
x86_linux_bionic_host.go Remove -fno-emulated-tls from linux_bionic 2018-10-31 11:18:22 -07:00
x86_linux_host.go Allow Linux hosts to use ubsan runtime sanitizers. 2020-02-20 20:27:35 +00:00
x86_windows_host.go Pass -static-libgcc to Windows link commands 2019-10-15 13:58:30 -07:00