Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

look for libc at runtime on windows #539

Closed
andrewrk opened this issue Oct 16, 2017 · 4 comments

Comments

Projects
None yet
1 participant
@andrewrk
Copy link
Member

commented Oct 16, 2017

moved from #302

when using zig.exe outside of MSVC command prompt:

C:\Users\andy\tmp>zig.exe build-exe hello_libc.zig --library c
lld: error: could not open libcmtd.lib: no such file or directory
lld: error: could not open vcruntimed.lib: no such file or directory

this should just work if you have MSVC installed.

@andrewrk andrewrk added this to the 0.2.0 milestone Oct 16, 2017

@andrewrk

This comment has been minimized.

Copy link
Member Author

commented Oct 16, 2017

Workaround right now is to run zig.exe from the VS2015 native tools command prompt.

@andrewrk andrewrk referenced this issue Oct 16, 2017

Closed

get zig working well on windows #302

28 of 34 tasks complete

andrewrk added a commit that referenced this issue Oct 16, 2017

look for libc at runtime on windows
See #539

should try harder before closing the issue but this should
get us working on CI at least

andrewrk added a commit that referenced this issue Oct 16, 2017

andrewrk added a commit that referenced this issue Oct 16, 2017

look for libc at runtime on windows
See #539

before we close the issue we should also detect MSVC 2017
but this gets us started with supporting MSVC 2015
@andrewrk

This comment has been minimized.

Copy link
Member Author

commented Oct 16, 2017

This is working but we should support VS2017 as well before closing the issue.

@andrewrk

This comment has been minimized.

Copy link
Member Author

commented Oct 23, 2017

How rust solved the issue: rust-lang/rust#38584

@andrewrk

This comment has been minimized.

Copy link
Member Author

commented Nov 1, 2017

solved by @dimenus in 38f05d4

@andrewrk andrewrk closed this Nov 1, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.