Skip to content

[bindings/odin] Fix Windows library generation - #657

Open
giuinktse7 wants to merge 1 commit into
nicbarker:mainfrom
giuinktse7:fix-windows-build
Open

giuinktse7 wants to merge 1 commit into
nicbarker:mainfrom
giuinktse7:fix-windows-build

Conversation

@giuinktse7

Copy link
Copy Markdown

I discovered a bug in the way the Clay Windows .lib file is built when I upgraded to Odin dev-2026-10 (This version of Odin changed the default linker to radlink).

The Windows build command for the Clay Odin bindings uses clang -c, which produces a COFF object file (.obj), but then writes it directly to clay.lib. The MSVC linker accepts the incorrect extension, but radlink crashes.

Fixed by compiling to clay.o and then explicitly invoking llvm-lib to correctly create the clay.lib archive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant