1
0
mirror of https://github.com/golang/go synced 2024-11-21 23:24:41 -07:00

cmd/dist: pass correct -DGOARCH_$GOARCH flag to gcc.

R=rsc
CC=golang-dev
https://golang.org/cl/5643061
This commit is contained in:
Shenghou Ma 2012-02-08 14:36:38 -05:00 committed by Russ Cox
parent 388816ae07
commit 1127b22976

View File

@ -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]));