clang build script: Explicitly set LLVM_DEFAULT_TARGET_TRIPLE
For Linux and Windows, this explicitly sets LLVM_DEFAULT_TARGET_TRIPLE
to what it currently is implicitly, so no change there at all.
The prebuilt intel clang on macOS currently has the default triple
x86_64-apple-darwin19.6.0. This changes it to just x86_64-apple-darwin
Per https://reviews.llvm.org/D34446#2688987 the version number at the
end is currently ignored, so this should be a noop.
For prebuilt arm clang on macOS, this changes the default triple from
x86_64-apple-darwin19.6.0 to arm64-apple-darwin : The clang/arm binary
now produces arm binaries by default. This doesn't affect the Chromium
build which sets an explicit triple (or at least passes an explicit
`-arch` flag), but it makes it easier to use the clang/arm binary to
locally build small test programs. And it makes the goma machinery need
slightly less code to support goma on mac/arm.
Commit-Queue: Lei Zhang <email@example.com>
Reviewed-by: Hans Wennborg <firstname.lastname@example.org>
2 files changed