mirror of
https://github.com/golang/go
synced 2024-11-18 06:14:46 -07:00
cmd/dist: fix build
TBR=bradfitz CC=golang-dev https://golang.org/cl/12369043
This commit is contained in:
parent
2ddb672ddc
commit
e6ddddadda
4
src/cmd/dist/build.c
vendored
4
src/cmd/dist/build.c
vendored
@ -589,7 +589,7 @@ static void
|
||||
install(char *dir)
|
||||
{
|
||||
char *name, *p, *elem, *prefix, *exe;
|
||||
bool islib, ispkg, isgo, stale, clang;
|
||||
bool islib, ispkg, isgo, stale;
|
||||
Buf b, b1, path;
|
||||
Vec compile, files, link, go, missing, clean, lib, extra;
|
||||
Time ttarg, t;
|
||||
@ -639,7 +639,7 @@ install(char *dir)
|
||||
splitfields(&gccargs, bstr(&b));
|
||||
for(i=0; i<nelem(proto_gccargs); i++)
|
||||
vadd(&gccargs, proto_gccargs[i]);
|
||||
if(clang) {
|
||||
if(contains(gccargs.p[0], "clang")) {
|
||||
// disable ASCII art in clang errors, if possible
|
||||
vadd(&gccargs, "-fno-caret-diagnostics");
|
||||
// clang is too smart about unused command-line arguments
|
||||
|
Loading…
Reference in New Issue
Block a user