Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
rust-rocksdb
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
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
fangzongwu
rust-rocksdb
Commits
a3260478
Commit
a3260478
authored
Apr 29, 2017
by
arthurprs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow explicity MAKE_PARALLELISM
parent
ee4c6ebb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
build.sh
librocksdb_sys/build.sh
+6
-2
No files found.
librocksdb_sys/build.sh
View file @
a3260478
...
@@ -3,10 +3,14 @@
...
@@ -3,10 +3,14 @@
set
-e
set
-e
con
=
1
con
=
1
if
[
[
-f
/proc/cpuinfo
]
]
;
then
if
[
"
$MAKE_PARALLELISM
"
]
;
then
con
=
`
grep
-c
processor /proc/cpuinfo
`
con
=
$MAKE_PARALLELISM
else
else
if
[[
-f
/proc/cpuinfo
]]
;
then
con
=
`
grep
-c
processor /proc/cpuinfo
`
else
con
=
`
sysctl
-n
hw.ncpu 2>/dev/null
||
echo
1
`
con
=
`
sysctl
-n
hw.ncpu 2>/dev/null
||
echo
1
`
fi
fi
fi
function
error
()
{
function
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