Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
65a643ba
Commit
65a643ba
authored
Dec 09, 2013
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/dist, cmd/go: pass -fmessage-length always
R=golang-dev, iant CC=golang-dev
https://golang.org/cl/36300044
parent
295e73e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
src/cmd/dist/build.c
src/cmd/dist/build.c
+2
-2
src/cmd/go/build.go
src/cmd/go/build.go
+3
-2
No files found.
src/cmd/dist/build.c
View file @
65a643ba
...
...
@@ -677,9 +677,9 @@ install(char *dir)
vadd
(
&
gccargs
,
"-fno-caret-diagnostics"
);
// clang is too smart about unused command-line arguments
vadd
(
&
gccargs
,
"-Qunused-arguments"
);
// disable line wrapping in error messages
vadd
(
&
gccargs
,
"-fmessage-length=0"
);
}
// disable word wrapping in error messages
vadd
(
&
gccargs
,
"-fmessage-length=0"
);
if
(
streq
(
gohostos
,
"darwin"
))
{
// golang.org/issue/5261
vadd
(
&
gccargs
,
"-mmacosx-version-min=10.6"
);
...
...
src/cmd/go/build.go
View file @
65a643ba
...
...
@@ -1890,10 +1890,11 @@ func (b *builder) ccompilerCmd(envvar, defcmd, objdir string) []string {
a
=
append
(
a
,
"-fno-caret-diagnostics"
)
// clang is too smart about command-line arguments
a
=
append
(
a
,
"-Qunused-arguments"
)
// disable word wrapping in error messages
a
=
append
(
a
,
"-fmessage-length=0"
)
}
// disable word wrapping in error messages
a
=
append
(
a
,
"-fmessage-length=0"
)
// On OS X, some of the compilers behave as if -fno-common
// is always set, and the Mach-O linker in 6l/8l assumes this.
// See http://golang.org/issue/3253.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment