Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
b44fb4c3
Commit
b44fb4c3
authored
Jan 09, 2015
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/go: Adjust finding gccgo to match current upstream sources.
From-SVN: r219406
parent
adfac8df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
libgo/go/cmd/go/build.go
+13
-6
No files found.
libgo/go/cmd/go/build.go
View file @
b44fb4c3
...
@@ -1783,15 +1783,22 @@ func (gcToolchain) cc(b *builder, p *Package, objdir, ofile, cfile string) error
...
@@ -1783,15 +1783,22 @@ func (gcToolchain) cc(b *builder, p *Package, objdir, ofile, cfile string) error
// The Gccgo toolchain.
// The Gccgo toolchain.
type
gccgoToolchain
struct
{}
type
gccgoToolchain
struct
{}
func
(
gccgoToolchain
)
compiler
()
string
{
var
gccgoName
,
gccgoBin
string
if
v
:=
os
.
Getenv
(
"GOC"
);
v
!=
""
{
return
v
func
init
()
{
gccgoName
=
os
.
Getenv
(
"GCCGO"
)
if
gccgoName
==
""
{
gccgoName
=
defaultGCCGO
}
}
return
defaultGOC
gccgoBin
,
_
=
exec
.
LookPath
(
gccgoName
)
}
func
(
gccgoToolchain
)
compiler
()
string
{
return
gccgoBin
}
}
func
(
tools
gccgoToolchain
)
linker
()
string
{
func
(
gccgoToolchain
)
linker
()
string
{
return
tools
.
compiler
()
return
gccgoBin
}
}
func
(
tools
gccgoToolchain
)
gc
(
b
*
builder
,
p
*
Package
,
archive
,
obj
string
,
importArgs
[]
string
,
gofiles
[]
string
)
(
ofile
string
,
output
[]
byte
,
err
error
)
{
func
(
tools
gccgoToolchain
)
gc
(
b
*
builder
,
p
*
Package
,
archive
,
obj
string
,
importArgs
[]
string
,
gofiles
[]
string
)
(
ofile
string
,
output
[]
byte
,
err
error
)
{
...
...
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