Skip to content

Commit

Permalink
build.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn committed Jan 11, 2022
1 parent c46a453 commit 3dc0c70
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ run once on the machine to configure Registry settings:

# CmdletBinding adds -Verbose functionality, SupportsShouldProcess adds -WhatIf
[CmdletBinding(SupportsShouldProcess = $true)]
param ([int] $configbits)
param (
[int] $configbits = 64,
[switch] $both
)

Begin
{
Expand Down Expand Up @@ -148,16 +151,14 @@ Process
{
PreserveVdproj

if ($configbits)
{
Configure $configbits
Build $configbits
}
else
if ($configbits -eq 86 -or $both)
{
Configure 86
Build 86
}

if ($configBits -eq 64 -or $both)
{
Configure 64
Build 64
}
Expand Down

0 comments on commit 3dc0c70

Please sign in to comment.