mirror of
https://github.com/golang/go
synced 2024-11-19 18:54: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:
parent
388816ae07
commit
1127b22976
2
src/cmd/dist/build.c
vendored
2
src/cmd/dist/build.c
vendored
@ -796,7 +796,7 @@ install(char *dir)
|
|||||||
vadd(&compile, "-I");
|
vadd(&compile, "-I");
|
||||||
vadd(&compile, workdir);
|
vadd(&compile, workdir);
|
||||||
vadd(&compile, bprintf(&b, "-DGOOS_%s", goos));
|
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]));
|
bpathf(&b, "%s/%s", workdir, lastelem(files.p[i]));
|
||||||
|
Loading…
Reference in New Issue
Block a user