ci(windows-drivers): static-CRT .cargo/config (fixes StaticCrtNotEnabled)
wdk-build errored StaticCrtNotEnabled + the generated wdk-sys layout asserts overflowed (E0080) — UMDF needs the static CRT. Add the canonical windows-drivers-rs .cargo/config.toml: explicit target = x86_64-pc-windows-msvc (separates host proc-macros, which stay dynamic-CRT, from the driver) + target-feature=+crt-static scoped to that target. DLL now under the triple subdir. The WDK bindgen itself now runs (it generated out/types.rs) — this is the last build-config layer before the /INTEGRITYCHECK verdict. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -125,7 +125,8 @@ jobs:
|
||||
run: cargo build -p wdk-probe -v
|
||||
- name: Inspect the produced DLL's /INTEGRITYCHECK bit
|
||||
run: |
|
||||
$dll = "target\debug\wdk_probe.dll"
|
||||
# explicit --target (.cargo/config.toml) -> output under the triple subdir.
|
||||
$dll = "target\x86_64-pc-windows-msvc\debug\wdk_probe.dll"
|
||||
if (-not (Test-Path $dll)) { throw "wdk_probe.dll not produced at $dll" }
|
||||
$b = [IO.File]::ReadAllBytes($dll)
|
||||
$pe = [BitConverter]::ToInt32($b, 0x3c)
|
||||
|
||||
Reference in New Issue
Block a user