Skip to content

Commit 473e621

Browse files
committed
add clean/verbose switches
1 parent 4c00538 commit 473e621

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

build.ps1

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,16 @@ param(
1616
[switch]$UseCratesIO,
1717
[switch]$UpdateLockFile,
1818
[switch]$Audit,
19-
[switch]$UseCFSAuth
19+
[switch]$UseCFSAuth,
20+
[switch]$Clean,
21+
[switch]$Verbose
2022
)
2123

24+
$env:RUSTC_LOG=$null
25+
if ($Verbose) {
26+
$env:RUSTC_LOG='rustc_codegen_ssa::back::link=info'
27+
}
28+
2229
if ($GetPackageVersion) {
2330
$match = Select-String -Path $PSScriptRoot/dsc/Cargo.toml -Pattern '^version\s*=\s*"(?<ver>.*?)"$'
2431
if ($null -eq $match) {
@@ -319,6 +326,10 @@ if (!$SkipBuild) {
319326
cargo audit fix
320327
}
321328

329+
if ($Clean) {
330+
cargo clean
331+
}
332+
322333
cargo build @flags
323334
}
324335
}

0 commit comments

Comments
 (0)