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
66320347
Commit
66320347
authored
Jan 21, 2015
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: Add the Go language version information to the Version output.
From-SVN: r219976
parent
98f51044
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
2 deletions
+14
-2
libgo/Makefile.am
+1
-1
libgo/Makefile.in
+1
-1
libgo/VERSION
+2
-0
libgo/merge.sh
+10
-0
No files found.
libgo/Makefile.am
View file @
66320347
...
...
@@ -971,7 +971,7 @@ s-version: Makefile
rm
-f
version.go.tmp
echo
"package runtime"
>
version.go.tmp
echo
'const defaultGoroot = "
$(prefix)
"'
>>
version.go.tmp
echo
'const theVersion = "'
`
$(GOC)
--version
| sed 1q
`
'"'
>>
version.go.tmp
echo
'const theVersion = "'
`
cat
$(srcdir)
/VERSION | sed 1q
`
' '
`
$(GOC)
--version
| sed 1q
`
'"'
>>
version.go.tmp
echo
'const theGoarch = "'
$(GOARCH)
'"'
>>
version.go.tmp
echo
'const theGoos = "'
$(GOOS)
'"'
>>
version.go.tmp
echo
'const theGccgoToolDir = "
$(libexecsubdir)
"'
>>
version.go.tmp
...
...
libgo/Makefile.in
View file @
66320347
...
...
@@ -4387,7 +4387,7 @@ s-version: Makefile
rm
-f
version.go.tmp
echo
"package runtime"
>
version.go.tmp
echo
'const defaultGoroot = "
$(prefix)
"'
>>
version.go.tmp
echo
'const theVersion = "'
`
$(GOC)
--version
| sed 1q
`
'"'
>>
version.go.tmp
echo
'const theVersion = "'
`
cat
$(srcdir)
/VERSION | sed 1q
`
' '
`
$(GOC)
--version
| sed 1q
`
'"'
>>
version.go.tmp
echo
'const theGoarch = "'
$(GOARCH)
'"'
>>
version.go.tmp
echo
'const theGoos = "'
$(GOOS)
'"'
>>
version.go.tmp
echo
'const theGccgoToolDir = "
$(libexecsubdir)
"'
>>
version.go.tmp
...
...
libgo/VERSION
0 → 100644
View file @
66320347
go1.4
\ No newline at end of file
libgo/merge.sh
View file @
66320347
...
...
@@ -136,6 +136,16 @@ merge_c() {
fi
}
if
test
-f
VERSION
;
then
if
!
cmp
-s
${
NEWDIR
}
/VERSION VERSION
;
then
cp
${
NEWDIR
}
/VERSION
.
fi
else
if
test
-f
${
NEWDIR
}
/VERSION
;
then
cp
${
NEWDIR
}
/VERSION
.
fi
fi
(
cd
${
NEWDIR
}
/src
&&
find
.
-name
'*.go'
-print
)
|
while
read
f
;
do
oldfile
=
${
OLDDIR
}
/src/
$f
newfile
=
${
NEWDIR
}
/src/
$f
...
...
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