From 1127b229763811c5e90d4d96b2c9f150e816df1d Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Wed, 8 Feb 2012 14:36:38 -0500 Subject: [PATCH] cmd/dist: pass correct -DGOARCH_$GOARCH flag to gcc. R=rsc CC=golang-dev https://golang.org/cl/5643061 --- src/cmd/dist/build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/dist/build.c b/src/cmd/dist/build.c index d229fe65c8..fff4d62eac 100644 --- a/src/cmd/dist/build.c +++ b/src/cmd/dist/build.c @@ -796,7 +796,7 @@ install(char *dir) vadd(&compile, "-I"); vadd(&compile, workdir); vadd(&compile, bprintf(&b, "-DGOOS_%s", goos)); - vadd(&compile, bprintf(&b, "-DGOARCH_%s", goos)); + vadd(&compile, bprintf(&b, "-DGOARCH_%s", goarch)); } bpathf(&b, "%s/%s", workdir, lastelem(files.p[i]));