Files
aiongg cfa67e97f1 Delay-load opengl32.dll on Windows MSVC (#15444)
wgpu's GL backend (glutin_wgl_sys) puts opengl32.dll in the import table
of every binary that links wgpu, and a process that has loaded it takes
about 60 ms longer to exit. That is every Windows test process and every
app exit on DX12 or Vulkan.

Delay-load it from the workspace's .cargo/config.toml, the one place that
reaches every package's binaries (a build script's link arguments reach
only its own package). Cargo joins these flags with the
CARGO_TARGET_<triple>_RUSTFLAGS set by CI and the Windows packaging
script. The print DLLs keep their delay-loads in the app's and CLI's
build.rs, since the exe must start without them whatever invokes cargo.
2026-11-18 18:51:43 +00:00
..