Skip to content

Commit 934c9e3

Browse files
Build sanitizers for all enabled SDKs by default
1 parent 5bd3ed3 commit 934c9e3

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

utils/build.ps1

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ If no such Windows SDK is installed, it will be downloaded from nuget.
6666
Include the ds2 remote debug server in the SDK.
6767
This component is currently only supported in Android builds.
6868
69-
.PARAMETER BuildSanitizers
70-
If set, include ASAN and UBSAN artifacts in the toolchain.
71-
7269
.PARAMETER SkipBuild
7370
If set, does not run the build phase.
7471
@@ -138,7 +135,6 @@ param(
138135
[switch] $SkipRedistInstall = $false,
139136
[switch] $SkipPackaging = $false,
140137
[switch] $IncludeDS2 = $false,
141-
[switch] $BuildSanitizers = $false,
142138
[string[]] $Test = @(),
143139
[string] $Stage = "",
144140
[string] $BuildTo = "",
@@ -2775,14 +2771,13 @@ if (-not $SkipBuild) {
27752771

27762772
Invoke-BuildStep Build-CMark $HostArch
27772773
Invoke-BuildStep Build-Compilers $HostArch
2778-
if ($BuildSanitizers) {
2779-
$InstallTo = "$($HostArch.ToolchainInstallRoot)\usr"
2780-
foreach ($Arch in $WindowsSDKArchs) {
2781-
Invoke-BuildStep Build-Sanitizers Windows $Arch $InstallTo
2782-
}
2783-
foreach ($Arch in $AndroidSDKArchs) {
2784-
Invoke-BuildStep Build-Sanitizers Windows $Arch $InstallTo
2785-
}
2774+
2775+
$InstallTo = "$($HostArch.ToolchainInstallRoot)\usr"
2776+
foreach ($Arch in $WindowsSDKArchs) {
2777+
Invoke-BuildStep Build-Sanitizers Windows $Arch $InstallTo
2778+
}
2779+
foreach ($Arch in $AndroidSDKArchs) {
2780+
Invoke-BuildStep Build-Sanitizers Windows $Arch $InstallTo
27862781
}
27872782
}
27882783

0 commit comments

Comments
 (0)