Skip to content

Fix "unable to generate DLL import .lib file"#19319

Merged
Vexu merged 1 commit intoziglang:masterfrom
aherrmann:fix-19284
Mar 16, 2024
Merged

Fix "unable to generate DLL import .lib file"#19319
Vexu merged 1 commit intoziglang:masterfrom
aherrmann:fix-19284

Conversation

@aherrmann
Copy link
Contributor

Closes #19284

As of 9f2cb92 configuring the global cache directory to a relative path causes errors of the following form when cross compiling to windows-gnu.

error: unable to generate DLL import .lib file for kernel32: FileNotFound

The issue occurred because the def_final_path included the global cache path as a prefix and later on the def_final_file was created using that path with the global cache directory handle.

Closes ziglang#19284

As of 9f2cb92 configuring the global
cache directory to a relative path causes errors of the following form
when cross compiling to `windows-gnu`.
```
error: unable to generate DLL import .lib file for kernel32: FileNotFound
```

The issue occurred because the `def_final_path` included the global
cache path as a prefix and later on the `def_final_file` was created
using that path with the global cache directory handle.
@squeek502
Copy link
Member

Nice, thanks for looking into this!

@Vexu Vexu merged commit dbb1191 into ziglang:master Mar 16, 2024
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.

Cross compile to Windows fails with relative global cache directory path

3 participants