tsan: allow to cross-build Go runtime
authorDmitry Vyukov <dvyukov@google.com>
Tue, 16 May 2023 09:10:29 +0000 (11:10 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Wed, 17 May 2023 07:30:51 +0000 (09:30 +0200)
commit11081a6a1dd7195fb8285e361873e706d6fb6e69
treeaf9db68b9bc3231aa4ed5f63f2f570ce3097cae2
parent0b9571fe598ba4786138eab0a31477289fb293fc
tsan: allow to cross-build Go runtime

Allow user to provide target GOOS/GOARCH.
If not provided, use the host GOOS/GOARCH as we do now.
This allows to cross-compile the runtime.
Also provide SKIP_TEST knob for cross-compilation
since the test will most likely not run on host.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D150650
compiler-rt/lib/tsan/go/buildgo.sh