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
fa945d5b
Commit
fa945d5b
authored
Dec 11, 2008
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix race with fresh perforce checkouts
R=r DELTA=15 (9 added, 0 deleted, 6 changed) OCL=20977 CL=20981
parent
cb64ec5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
Makefile
src/cmd/gc/Makefile
+15
-6
No files found.
src/cmd/gc/Makefile
View file @
fa945d5b
...
...
@@ -39,13 +39,22 @@ y.tab.h: $(YFILES)
y.tab.c
:
y.tab.h
test
-f
y.tab.c
&&
touch
y.tab.c
# the test here checks whether we have 6g at all.
# if so, use it. if not, just use the sysimport.c we have.
# this happens on fresh perforce checkouts where
# sysimport.c ends up with an older time stamp
# than sys.go (or unsafe.go or mksys.c).
sysimport.c
:
sys.go unsafe.go mksys.c
gcc
-o
mksys mksys.c
6g sys.go
6g unsafe.go
./mksys sys
>
_sysimport.c
&&
\
./mksys unsafe
>>
_sysimport.c
&&
\
mv
_sysimport.c sysimport.c
if
test
-x
$(BIN)
/6g
;
then
\
gcc
-o
mksys mksys.c
;
\
6g sys.go
;
\
6g unsafe.go
;
\
./mksys sys
>
_sysimport.c
&&
\
./mksys unsafe
>>
_sysimport.c
&&
\
mv
_sysimport.c sysimport.c
;
\
elif
test
-f
sysimport.c
;
then
\
touch
sysimport.c
;
\
fi
clean
:
rm
-f
$(OFILES)
*
.6 enam.c 6.out a.out y.tab.h y.tab.c
$(LIB)
_sysimport.c
...
...
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