Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
cdb5d024
"...git@develop.openfoam.com:Development/openfoam.git" did not exist on "4ee65d12c4ae2999ee57165581d13a444c848e72"
Commit
cdb5d024
authored
9 years ago
by
Henry Weller
Browse files
Options
Downloads
Patches
Plain Diff
wmake: Simplified handling of '-j' option to sub-processes
parent
c0228988
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wmake/wmake
+11
-22
11 additions, 22 deletions
wmake/wmake
with
11 additions
and
22 deletions
wmake/wmake
+
11
−
22
View file @
cdb5d024
...
...
@@ -225,6 +225,8 @@ fi
if
[
"
$WM_NCOMPPROCS
"
]
then
parOpt
=
"-j
$WM_NCOMPPROCS
"
if
[
"
$WM_NCOMPPROCS
"
-gt
1
-a
!
"
$MAKEFLAGS
"
]
then
lockDir
=
$HOME
/.
$WM_PROJECT
/.wmake
...
...
@@ -236,7 +238,7 @@ then
mkdir
-p
$lockDir
fi
make
=
"
$make
--no-print-directory
-j "
$WM_NCOMPPROCS
make
=
"
$make
--no-print-directory
$parOpt
"
fi
fi
...
...
@@ -281,21 +283,11 @@ if [ -n "$update" ]
then
wrmdep
-update
wrmdep
-old
if
[
"
$all
"
!=
"queue"
]
then
if
[
-n
"
$WM_NCOMPPROCS
"
]
then
wmakeLnIncludeAll
-j
$WM_NCOMPPROCS
else
wmakeLnIncludeAll
fi
fi
wmakeLnIncludeAll
-update
$parOpt
wclean empty
export
WM_UPDATE_DEPENDENCIES
=
yes
fi
unset
update
#------------------------------------------------------------------------------
# Recurse the source tree to compile "all" targets
...
...
@@ -343,24 +335,21 @@ fi
# Recurse the source tree to compile "all" targets using wmakeQueue
#------------------------------------------------------------------------------
scheduler
=
"wmakeCollect"
if
[
"
$all
"
=
"queue"
]
then
[
-n
"
$update
"
]
||
wmakeLnIncludeAll
$parOpt
(
\
wmakeLnIncludeAll
-j
$WM_NCOMPPROCS
\
&&
WM_COLLECT_DIR
=
$WM_PROJECT_DIR
/platforms/
${
WM_OPTIONS
}
/
${
PWD
////_
}
\
WM_SCHEDULER
=
$scheduler
\
trap
'$scheduler -kill'
TERM INT
;
\
$scheduler
-clean
\
WM_COLLECT_DIR
=
$WM_PROJECT_DIR
/platforms/
${
WM_OPTIONS
}
/
${
PWD
////_
}
\
WM_SCHEDULER
=
wmakeCollect
\
trap
'$WM_SCHEDULER -kill'
TERM INT
;
\
$WM_SCHEDULER
-clean
\
&&
wmake
-all
objects
\
&&
$
scheduler
\
&&
$
WM_SCHEDULER
\
)
&&
wmake
-all
exit
$?
fi
unset
scheduler
#------------------------------------------------------------------------------
# Search up the directory tree for the Make sub-directory,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment