Skip to content

Fully static stage1 compiler on windows #3430

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

Closed
wants to merge 2 commits into from

Conversation

Sahnvour
Copy link
Contributor

@Sahnvour Sahnvour commented Oct 10, 2019

Fixes #3391.

This doesn't enable linking debug zig with release llvm yet but I still plan to do it soon.

… the CRT on windows

we want to use /MT instead of /MD for a fully static executable
Comment on lines 8 to 9
set(CMAKE_CXX_FLAGS_RELEASE_INIT
"/MT /O2 /Ob2 /D NDEBUG")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it's desirable to build Release mode on vs2019 we can change /Ob2/Ob1 to get around compiler bug.

@andrewrk
Copy link
Member

Next steps:

@mikdusan mikdusan added the stage1 The process of building from source via WebAssembly and the C backend. label Oct 10, 2019
@Sahnvour
Copy link
Contributor Author

@andrewrk wiki updated, I can provide a static build of llvm+clang if you wish.

@andrewrk
Copy link
Member

Thanks @Sahnvour. I started a build based on the new instructions. It will probably be ~12 hours before the new tarball is in place.

I can provide a static build of llvm+clang if you wish.

I'll be happy to set up you the bomb with S3 permissions at some point so that you can do this. The UI for that is annoying though and I don't have enough patience today for it, so for now I'll take care of uploading this tarball.

@andrewrk
Copy link
Member

Continued in a branch in this repository here: #3467

@andrewrk andrewrk closed this Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage1 The process of building from source via WebAssembly and the C backend.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

the windows zig binaries from the download page dynamically link vcredist140.dll instead of static linking
3 participants