Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
6b8ba5d8
Commit
6b8ba5d8
authored
Jul 29, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quietgcc: do not use -m64 on 32-bit machines
R=r DELTA=9 (8 added, 0 deleted, 1 changed) OCL=32413 CL=32418
parent
9346c6d9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
quietgcc.bash
src/quietgcc.bash
+10
-1
No files found.
src/quietgcc.bash
View file @
6b8ba5d8
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
# Copyright 2009 The Go Authors. All rights reserved.
# Copyright 2009 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# license that can be found in the LICENSE file.
# The master for this file is $GOROOT/src/quietgcc.bash
# The master for this file is $GOROOT/src/quietgcc.bash
# Changes made to $HOME/bin/quietgcc will be overridden.
# Changes made to $HOME/bin/quietgcc will be overridden.
...
@@ -25,9 +26,17 @@ case "`uname -a`" in
...
@@ -25,9 +26,17 @@ case "`uname -a`" in
gcc
=
/usr/crosstool/v10/gcc-4.2.1-glibc-2.3.2/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/bin/gcc
gcc
=
/usr/crosstool/v10/gcc-4.2.1-glibc-2.3.2/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/bin/gcc
esac
esac
# If this is a 64-bit machine, compile 64-bit versions of
# the host tools, to match the native ptrace.
case
"
`
uname
-m
-p
`
"
in
*
x86_64
*
|
*
amd64
*
)
gcc
=
"
$gcc
-m64"
esac
# Run gcc, save error status, redisplay output without noise, exit with gcc status.
# Run gcc, save error status, redisplay output without noise, exit with gcc status.
tmp
=
/tmp/qcc.
$$
.
$USER
.out
tmp
=
/tmp/qcc.
$$
.
$USER
.out
$gcc
-
m64
-
Wall
-Wno-sign-compare
-Wno-missing-braces
\
$gcc
-Wall
-Wno-sign-compare
-Wno-missing-braces
\
-Wno-parentheses
-Wno-unknown-pragmas
-Wno-switch
-Wno-comment
\
-Wno-parentheses
-Wno-unknown-pragmas
-Wno-switch
-Wno-comment
\
"
$@
"
>
$tmp
2>&1
"
$@
"
>
$tmp
2>&1
status
=
$?
status
=
$?
...
...
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