Skip to content

Find native include and libraries is broken with msvc ABI #9002

Description

@mlarouche

I think #8878 broke the detection of MSVC Windows SDK find in Zig. I can't find windows.h or any Windows library when using the msvc ABI

Tried with Zig version 0.9.0-dev.5423+7babff0bc

❯ zig build -Dtarget=native-native-msvc --verbose
C:\Programmation\Zig\zig\out\install\x64-Release\bin\zig.exe build-exe C:\Programmation\Hochelag\src\main.zig -lc -ld3d12 -ldxgi -ld3dcompiler -ldxguid --cache-dir C:\Programmation\Hochelag\zig-cache --global-cache-dir C:\Users\micha\AppData\Local\zig --name Hochelag -target native-native-msvc -mcpu=skylake-sgx --enable-cache
lld-link: error: could not open 'msvcrtd.lib': no such file or directory
lld-link: error: could not open 'vcruntimed.lib': no such file or directory
lld-link: error: could not open 'ucrtd.lib': no such file or directory
lld-link: error: could not open 'legacy_stdio_definitions.lib': no such file or directory
lld-link: error: could not open 'kernel32.lib': no such file or directory
lld-link: error: could not open 'ntdll.lib': no such file or directory
lld-link: error: could not open 'd3dcompiler.lib': no such file or directory
lld-link: error: could not open 'dxguid.lib': no such file or directory
error: LLDReportedFailure
Hochelag...The following command exited with error code 1:
C:\Programmation\Zig\zig\out\install\x64-Release\bin\zig.exe build-exe C:\Programmation\Hochelag\src\main.zig -lc -ld3d12 -ldxgi -ld3dcompiler -ldxguid --cache-dir C:\Programmation\Hochelag\zig-cache --global-cache-dir C:\Users\micha\AppData\Local\zig --name Hochelag -target native-native-msvc -mcpu=skylake-sgx --enable-cache
error: the following build command failed with exit code 1:
C:\Programmation\Hochelag\zig-cache\o\1163269d18ecaacb76d29494e60535eb\build.exe C:\Programmation\Zig\zig\out\install\x64-Release\bin\zig.exe C:\Programmation\Hochelag C:\Programmation\Hochelag\zig-cache C:\Users\micha\AppData\Local\zig -Dtarget=native-native-msvc --verbose

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-windowsMicrosoft Windows

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions