Skip to content

Commit 17f2ead

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
move rustflag from build to toml
1 parent 0680a02 commit 17f2ead

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.cargo/config.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ rustflags = [
2020
"-Clink-args=/NODEFAULTLIB:msvcrt.lib",
2121
"-Clink-args=/NODEFAULTLIB:libucrt.lib",
2222
"-Clink-args=/DYNAMICBASE",
23-
"-Clink-args=/CETCOMPAT"
23+
"-Clink-args=/CETCOMPAT",
24+
"-Dwarnings"
2425
]
2526

2627
[target.aarch64-windows-msvc]
@@ -31,7 +32,8 @@ rustflags = [
3132
"-Clink-args=/NODEFAULTLIB:vcruntime.lib",
3233
"-Clink-args=/NODEFAULTLIB:msvcrt.lib",
3334
"-Clink-args=/NODEFAULTLIB:libucrt.lib",
34-
"-Clink-args=/DYNAMICBASE"
35+
"-Clink-args=/DYNAMICBASE",
36+
"-Dwarnings"
3537
]
3638

3739
# The following is only needed for release builds

build.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ trap {
2929
}
3030

3131
$env:RUSTC_LOG=$null
32-
$env:RUSTFLAGS='-Dwarnings'
3332
$usingADO = ($null -ne $env:TF_BUILD)
3433
if ($usingADO -or $UseCFSAuth) {
3534
$UseCFS = $true

0 commit comments

Comments
 (0)