Skip to content

Commit

Permalink
add /force flag to build.bat (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
mflatt authored Nov 16, 2023
1 parent 19cdad7 commit 49bc6bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion BUILDING
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,14 @@ after <machine type>:

* `/keepvs`

Specifies that command-lnie tools like "cl.exe" are available and
Specifies that command-line tools like "cl.exe" are available and
configured already, so `c\vs.bat` should not be run.

* `/force`

Specifies that existing boot files should be used for the target
machine instead of creating via pb.

* `/test`
`/test-one`
`/test-some-fast`
Expand Down
4 changes: 3 additions & 1 deletion build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ set SRCDIR=%~dp0
set MAKETARGET=all-dlls
set SKIPVS=no
set SKIPSUBMODULE=no
set USEPB=yes

if "%WORKAREA%"=="" goto needargument

Expand All @@ -24,6 +25,7 @@ if defined ARG (
if "%ARG%"=="/kernel" set MAKETARGET=kernel && goto argloop
if "%ARG%"=="/none" set MAKETARGET=none && goto argloop
if "%ARG%"=="/config" set MAKETARGET=none && goto argloop
if "%ARG%"=="/force" set USEPB=no && goto argloop
if "%ARG%"=="/test-one" set MAKETARGET=test-one && goto argloop
if "%ARG%"=="/test-some-fast" set MAKETARGET=test-some-fast && goto argloop
if "%ARG%"=="/test-some" set MAKETARGET=test-some && goto argloop
Expand Down Expand Up @@ -60,7 +62,7 @@ echo srcdir=%SRCDIR% > %WORKAREA%\Mf-config
echo m=%M% >> %WORKAREA%\Mf-config
echo linkAs=%LINKAS% >> %WORKAREA%\Mf-config
echo runtimeAs=%RUNTIMEAS% >> %WORKAREA%\Mf-config
echo enableFrompb=yes >> %WORKAREA%\Mf-config
echo enableFrompb=%USEPB% >> %WORKAREA%\Mf-config

echo workarea=%WORKAREA% > Makefile
echo !include %WORKAREA%\Mf-config >> Makefile
Expand Down

0 comments on commit 49bc6bd

Please sign in to comment.