mirror of https://github.com/acidanthera/audk.git
Vlv2TbltDevicePkg: Add /m flag for multi-processor build
https://bugzilla.tianocore.org/show_bug.cgi?id=274 Add support for multi-processor builds using a /m flag. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: David Wei <david.wei@intel.com> Cc: Mang Guo <mang.guo@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
parent
eafde7a221
commit
eae631bc68
|
@ -45,6 +45,11 @@ if /i "%~1"=="/y" (
|
||||||
shift
|
shift
|
||||||
goto OptLoop
|
goto OptLoop
|
||||||
)
|
)
|
||||||
|
if /i "%~1"=="/m" (
|
||||||
|
set Build_Flags=%Build_Flags% /m
|
||||||
|
shift
|
||||||
|
goto OptLoop
|
||||||
|
)
|
||||||
if /i "%~1" == "/c" (
|
if /i "%~1" == "/c" (
|
||||||
set Build_Flags=%Build_Flags% /c
|
set Build_Flags=%Build_Flags% /c
|
||||||
shift
|
shift
|
||||||
|
|
|
@ -71,6 +71,13 @@ if /i "%~1"=="/y" (
|
||||||
shift
|
shift
|
||||||
goto OptLoop
|
goto OptLoop
|
||||||
)
|
)
|
||||||
|
if /i "%~1"=="/m" (
|
||||||
|
if defined NUMBER_OF_PROCESSORS (
|
||||||
|
set /a build_threads=%NUMBER_OF_PROCESSORS%+1
|
||||||
|
)
|
||||||
|
shift
|
||||||
|
goto OptLoop
|
||||||
|
)
|
||||||
if /i "%~1" == "/c" (
|
if /i "%~1" == "/c" (
|
||||||
echo Removing previous build files ...
|
echo Removing previous build files ...
|
||||||
if exist build (
|
if exist build (
|
||||||
|
@ -266,6 +273,7 @@ echo.
|
||||||
echo /c CleanAll before building
|
echo /c CleanAll before building
|
||||||
echo /l Generate build log file
|
echo /l Generate build log file
|
||||||
echo /y Generate build report file
|
echo /y Generate build report file
|
||||||
|
echo /m Enable multi-processor build
|
||||||
echo /IA32 Set Arch to IA32 (default: X64)
|
echo /IA32 Set Arch to IA32 (default: X64)
|
||||||
echo /X64 Set Arch to X64 (default: X64)
|
echo /X64 Set Arch to X64 (default: X64)
|
||||||
echo.
|
echo.
|
||||||
|
|
Loading…
Reference in New Issue