LINK : fatal error LNK1181: cannot open input file 'advapi32.lib'

Hello,

I’m building rust for arm (thumbv7a-pc-windows-msvc) using a private rust compiler, I can build it just fine locally, however, when I build it in azure devops, I get error from linker that LINK : fatal error LNK1181: cannot open input file ‘advapi32.lib’.

Same private rust compiler is used both locally and in devops. I checked the build agent in devops, it does have Windows ARM SDK installed, I can find advapi32.lib in below folders, do I have to set extra rustflags for link-arg and point to the arm folder below? which I did not do when built locally.

C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17763.0\um\arm
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17763.0\um\arm64
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17763.0\um\x64
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17763.0\um\x86