Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
ThirdParty-common
Commits
6c13263e
Commit
6c13263e
authored
Jun 13, 2016
by
mark
Browse files
STYLE: make WM_NCOMPPROCS consistent with Allwmake behaviour
parent
376a2b66
Changes
1
Hide whitespace changes
Inline
Side-by-side
etc/tools/ThirdPartyFunctions
View file @
6c13263e
...
...
@@ -39,17 +39,16 @@ installBASE=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER
#
# Mostly building without wmake
# - disable wmakeScheduler variables
# -
restrict WM_NCOMPPROCS to local
number of cores
# -
use max
number of cores
for building
#
unset
WM_HOSTS WM_SCHEDULER
export
WM_NCOMPPROCS
=
$(
egrep
"^processor"
/proc/cpuinfo 2>/dev/null |
wc
-l
)
if
[
$WM_NCOMPPROCS
-le
1
]
if
[
-r
/proc/cpuinfo
]
then
WM_NCOMPPROCS
=
$(
egrep
"^processor"
/proc/cpuinfo |
wc
-l
)
else
WM_NCOMPPROCS
=
1
elif
[
$WM_NCOMPPROCS
-ge
8
]
then
WM_NCOMPPROCS
=
8
fi
export
WM_NCOMPPROCS
# echo "Building on $WM_NCOMPPROCS cores"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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