Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From 03e6c339d4fb712fbb8c4ca6ef2fc7100dcdb3d7 Mon Sep 17 00:00:00 2001 |
| 2 | From: Matt Madison <matt@madison.systems> |
| 3 | Date: Thu, 14 Sep 2017 05:38:10 -0700 |
| 4 | Subject: [PATCH 8/8] make.bash: add GOHOSTxx indirection for cross-canadian |
| 5 | builds |
| 6 | |
| 7 | Add environment variables for specifying the host OS/arch |
| 8 | that we are building the compiler for, so it can differ from |
| 9 | the build host OS/arch. |
| 10 | |
| 11 | Upstream-Status: Pending |
| 12 | |
| 13 | Signed-off-by: Matt Madison <matt@madison.systems> |
| 14 | --- |
| 15 | src/make.bash | 2 ++ |
| 16 | 1 file changed, 2 insertions(+) |
| 17 | |
| 18 | diff --git a/src/make.bash b/src/make.bash |
| 19 | index 2e6fb05..0bdadc6 100755 |
| 20 | --- a/src/make.bash |
| 21 | +++ b/src/make.bash |
| 22 | @@ -173,6 +173,8 @@ if [ "$do_host_build" = "yes" ]; then |
| 23 | echo |
| 24 | |
| 25 | GOTOOLDIR_BOOTSTRAP="${GOTOOLDIR_BOOTSTRAP:-$GOTOOLDIR}" |
| 26 | + GOHOSTOS="${GOHOSTOS_CROSS:-$GOHOSTOS}" |
| 27 | + GOHOSTARCH="${GOHOSTARCH_CROSS:-$GOHOSTARCH}" |
| 28 | echo "##### Building packages and commands for host, $GOHOSTOS/$GOHOSTARCH." |
| 29 | # CC_FOR_TARGET is recorded as the default compiler for the go tool. When building for the host, however, |
| 30 | # use the host compiler, CC, from `cmd/dist/dist env` instead. |
| 31 | -- |
| 32 | 2.7.4 |
| 33 | |