Add tool_header2rdl: standalone C/C++ header to RDL converter#4148
Add tool_header2rdl: standalone C/C++ header to RDL converter#4148
Conversation
Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/99f3ab0f-a719-41ac-8c6d-5a786e48fe7c Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/99f3ab0f-a719-41ac-8c6d-5a786e48fe7c Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
|
@copilot also check on the build error |
Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/118bff9f-80b9-4353-95fd-72295cf20342 Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/118bff9f-80b9-4353-95fd-72295cf20342 Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/118bff9f-80b9-4353-95fd-72295cf20342 Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
…mpile time Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/fc2cd169-dab4-4b61-957d-07fd01046430 Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
The build error was that Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot clippy failed |
Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/d1401d86-5126-4a4f-bbbc-6535082e14eb Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
|
@copilot check on the build failure |
…n windows-11-arm) Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/af8a019b-1556-4371-a752-220a05794b89 Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Fixed in 4d4b7de. The |
|
@copilot check build - looks like libclang might be missing on the windows runners |
…unavailable) Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/9f4b3893-c10a-4a7a-87d3-560ac24efb73 Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Fixed in c6198ff. The crash ( |
|
@copilot may need to use https://github.com/KyleMayes/install-llvm-action |
…NG_PATH so test_header2rdl runs on all Windows CI runners Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/e71dbe28-021e-497b-a028-9c9b95712cf9 Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
|
@copilot https://github.com/microsoft/windows-rs/blob/master/.github/workflows/cross.yml also does some LLVM prep - maybe we can just reuse that? |
The
|
The LLVM in
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
…th install-llvm-action now enabled) Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/af25c13f-e04b-4ddf-b7bb-f96d9f7d3ada Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
|
@copilot check the build |
…adable by 32-bit process) Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/dfdb6023-6442-441c-92b6-b1c83e64175c Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Fixed in 0bfb4e9. The |
Adds
tool_header2rdl, a new library+binary crate that converts C/C++ headers to.rdlfiles usingclang = { version = "2.0.0", features = ["runtime"] }(dynamic loading — noLIBCLANG_PATHneeded at compile time). Also addstest_header2rdlwith golden-file tests for the converter.CI is updated to install LLVM 18 via
KyleMayes/install-llvm-action@v2on all Windows runners before testing, withLIBCLANG_PATHset to${{ env.LLVM_PATH }}/binsolibclang.dllis found at runtime.test_header2rdlruns on x64, gnu, and arm64 Windows CI matrix entries. The i686 entry is excluded becauseinstall-llvm-action@v2installs a 64-bitlibclang.dllthat cannot be loaded by the 32-bit i686 test process.