mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
wmakeCollect: Support simultaneous builds of different target architectures or compilers
This commit is contained in:
@ -349,10 +349,11 @@ if [ "$all" = "queue" ]
|
|||||||
then
|
then
|
||||||
( \
|
( \
|
||||||
wmakeLnIncludeAll -j$WM_NCOMPPROCS \
|
wmakeLnIncludeAll -j$WM_NCOMPPROCS \
|
||||||
&& WM_ID=$(stat --format=%d.%i $PWD) \
|
&& WM_ID=${PWD////_}.$WM_OPTIONS \
|
||||||
WM_SCHEDULER=$scheduler \
|
WM_SCHEDULER=$scheduler \
|
||||||
trap '$scheduler -kill' TERM INT; \
|
trap '$scheduler -kill' TERM INT; \
|
||||||
wmake -all objects \
|
$scheduler -clean \
|
||||||
|
&& wmake -all objects \
|
||||||
&& $scheduler \
|
&& $scheduler \
|
||||||
) && wmake -all
|
) && wmake -all
|
||||||
exit $?
|
exit $?
|
||||||
|
|||||||
@ -42,7 +42,8 @@ usage() {
|
|||||||
Usage: $Script [OPTION] <command>
|
Usage: $Script [OPTION] <command>
|
||||||
|
|
||||||
options:
|
options:
|
||||||
-kill Removes temporary makefiles
|
-clean Clean-up before compilation (removes old makefiles)
|
||||||
|
-kill Clean-up after termination (removes makefiles)
|
||||||
-h | -help Print the usage
|
-h | -help Print the usage
|
||||||
|
|
||||||
Collecting scheduler for fast parallel compilation of large numbers of object
|
Collecting scheduler for fast parallel compilation of large numbers of object
|
||||||
@ -76,7 +77,7 @@ do
|
|||||||
-h | -help)
|
-h | -help)
|
||||||
usage
|
usage
|
||||||
;;
|
;;
|
||||||
-kill)
|
-kill | -clean)
|
||||||
cleanup="true"
|
cleanup="true"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user