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
cf79411b
Commit
cf79411b
authored
Aug 17, 2011
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gc: fix mkbuiltin
Broken by Plan 9 changes. R=ken2 CC=golang-dev
https://golang.org/cl/4896050
parent
42e6c03f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
src/cmd/gc/Makefile
src/cmd/gc/Makefile
+4
-0
src/cmd/gc/mkbuiltin
src/cmd/gc/mkbuiltin
+1
-1
src/cmd/gc/mkbuiltin1.c
src/cmd/gc/mkbuiltin1.c
+3
-3
No files found.
src/cmd/gc/Makefile
View file @
cf79411b
...
...
@@ -65,3 +65,7 @@ opnames.h: mkopnames go.h
./mkopnames go.h
>
opnames.h
CLEANFILES
+=
*
.[568]
[
568].out y1.tab.c yerr.h mkbuiltin1 builtin.c _builtin.c opnames.h
mkbuiltin1
:
mkbuiltin1.$O
$(HOST_LD)
-o
$@
mkbuiltin1.
$O
-L
"
$(GOROOT)
"
/lib
-lbio
-l9
-lm
$(HOST_LDFLAGS)
src/cmd/gc/mkbuiltin
View file @
cf79411b
...
...
@@ -16,7 +16,7 @@ if [ -z "$GC" ]; then
exit
1
fi
g
cc
-o
mkbuiltin1 mkbuiltin1.c
g
omake mkbuiltin1
rm
-f
_builtin.c
for
i
in
runtime unsafe
do
...
...
src/cmd/gc/mkbuiltin1.c
View file @
cf79411b
...
...
@@ -10,7 +10,7 @@
void
esc
(
char
*
);
int
void
main
(
int
argc
,
char
**
argv
)
{
char
*
name
;
...
...
@@ -64,13 +64,13 @@ begin:
}
esc
(
p
);
printf
(
"
\\
n
\"\n
"
,
p
);
printf
(
"
\\
n
\"\n
"
);
}
sysfatal
(
"did not find end of imports
\n
"
);
end:
printf
(
"
\t\"
$$
\\
n
\"
;
\n
"
);
return
0
;
exits
(
0
)
;
}
void
...
...
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