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
11991737
Commit
11991737
authored
Feb 08, 2012
by
Shenghou Ma
Committed by
Russ Cox
Feb 08, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/dist: redure max background tasks nr. when building on ARM
R=rsc CC=golang-dev
https://golang.org/cl/5642063
parent
56ade2d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
unix.c
src/cmd/dist/unix.c
+5
-1
No files found.
src/cmd/dist/unix.c
View file @
11991737
...
@@ -147,6 +147,7 @@ static struct {
...
@@ -147,6 +147,7 @@ static struct {
char
*
cmd
;
char
*
cmd
;
}
bg
[
MAXBG
];
}
bg
[
MAXBG
];
static
int
nbg
;
static
int
nbg
;
static
int
maxnbg
=
nelem
(
bg
);
static
void
bgwait1
(
void
);
static
void
bgwait1
(
void
);
...
@@ -158,7 +159,7 @@ genrun(Buf *b, char *dir, int mode, Vec *argv, int wait)
...
@@ -158,7 +159,7 @@ genrun(Buf *b, char *dir, int mode, Vec *argv, int wait)
Buf
cmd
;
Buf
cmd
;
char
*
q
;
char
*
q
;
while
(
nbg
>=
nelem
(
bg
)
)
while
(
nbg
>=
maxnbg
)
bgwait1
();
bgwait1
();
// Generate a copy of the command to show in a log.
// Generate a copy of the command to show in a log.
...
@@ -665,6 +666,9 @@ main(int argc, char **argv)
...
@@ -665,6 +666,9 @@ main(int argc, char **argv)
fatal
(
"unknown architecture: %s"
,
u
.
machine
);
fatal
(
"unknown architecture: %s"
,
u
.
machine
);
}
}
if
(
strcmp
(
gohostarch
,
"arm"
)
==
0
)
maxnbg
=
1
;
init
();
init
();
xmain
(
argc
,
argv
);
xmain
(
argc
,
argv
);
bfree
(
&
b
);
bfree
(
&
b
);
...
...
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