Support for kernel driver compilation using clang-cl from VS 2026 - #42
Support for kernel driver compilation using clang-cl from VS 2026#42nullbytepl wants to merge 2 commits into
Conversation
|
Oh, that's interesting! Thanks for the PR. |
|
Hi everyone, |
@seiftnesse Hi! First of all, thank you for your work! It's clear you know more about these topics than I do 😅. It would likely be impossible for us to transition to fully unifed compiler across our monorepo without it! Using your work, it only took me less than a day of "hacking around" to get it to function properly for our VS+clang-cl-based project with a Windows userspace library, WDF-based driver and userspace/kernel, OS agnostic hardware access library. Guess you can now say you've contributed something to the field of ultrasound research 😀 As for your patch, I'll definitely take a deeper look at it and integrate it into our PR whenever I find free time at the office. I'm guessing our changes diverge when it comes to the linker flags because we use the MSVC linker and not lld-link, so I'll try to accommodate for that too. |
|
@seiftnesse your new patch mentions "wdk_smoke_check_no_sse.cmake" but it seems to be missing from the commit, could you add that somewhere? |
|
Hi there,
I'm glad to hear that!
My bad, forgot to include it. wdk_smoke_check_no_sse.cmake is just a small tool that catches SSE/AVX instructions and self-recursive functions. I'll push it right now. |
This PR adds support for compiling a WDF kernel driver using
clang-cl.We currently use this setup internally to compile our WDF-based
us4oemdriver written in C withclang-clas available in VS 2026.cc @pjarosik