Crafter.Build/implementations
catbot 47b886602a
Some checks failed
CI / build-test-release (pull_request) Has been cancelled
fix: unbreak mingw build of Crafter.Build-Clang
Two Windows-only compile errors blocked the mingw cross-compile:

* `<winsock2.h>` transitively includes `<rpc.h>`, which defines
  `#define interface struct`. The file uses `interface` as a loop
  variable name in three for-loops, so on mingw it expanded into
  `for(... struct : ...)` and cascaded into a wall of unrelated parse
  errors. Undefine the macro right after the Windows headers in the
  global module fragment.
* `static_cast<uint16_t>` in the port-probe helper failed because
  mingw's `<stdint.h>` typedefs are in the global module fragment and
  the C-namespace `::uint16_t` isn't anchored into the module purview
  on this toolchain. `import std;` does export `std::uint16_t`, so
  qualify the cast.

Verified by running `crafter-build --target=x86_64-w64-mingw32` end to
end and the full test suite (13 passed, 5 environment-skipped).
2026-05-27 03:15:19 +00:00
..
Crafter.Build-Asset.cpp asset changes 2026-05-19 00:50:06 +02:00
Crafter.Build-Clang.cpp fix: unbreak mingw build of Crafter.Build-Clang 2026-05-27 03:15:19 +00:00
Crafter.Build-External.cpp fix external cache race on concurrent builds 2026-05-27 01:55:29 +00:00
Crafter.Build-Implementation.cpp v2 nearly done 2026-04-27 07:04:42 +02:00
Crafter.Build-Interface.cpp v2 nearly done 2026-04-27 07:04:42 +02:00
Crafter.Build-Platform.cpp wasm improvements 2026-05-18 05:23:11 +02:00
Crafter.Build-Progress.cpp loading bar 2026-04-29 03:27:11 +02:00
Crafter.Build-Shader.cpp fixes 2026-05-02 21:08:51 +02:00
Crafter.Build-Test.cpp fixes 2026-04-30 02:20:19 +02:00
main.cpp v2 nearly done 2026-04-27 07:04:42 +02:00