We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c00538 commit 473e621Copy full SHA for 473e621
build.ps1
@@ -16,9 +16,16 @@ param(
16
[switch]$UseCratesIO,
17
[switch]$UpdateLockFile,
18
[switch]$Audit,
19
- [switch]$UseCFSAuth
+ [switch]$UseCFSAuth,
20
+ [switch]$Clean,
21
+ [switch]$Verbose
22
)
23
24
+$env:RUSTC_LOG=$null
25
+if ($Verbose) {
26
+ $env:RUSTC_LOG='rustc_codegen_ssa::back::link=info'
27
+}
28
+
29
if ($GetPackageVersion) {
30
$match = Select-String -Path $PSScriptRoot/dsc/Cargo.toml -Pattern '^version\s*=\s*"(?<ver>.*?)"$'
31
if ($null -eq $match) {
@@ -319,6 +326,10 @@ if (!$SkipBuild) {
319
326
cargo audit fix
320
327
}
321
328
329
+ if ($Clean) {
330
+ cargo clean
331
+ }
332
322
333
cargo build @flags
323
334
324
335
0 commit comments