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

Use an "exelink" instead of a batch file on Windows #38

Merged
merged 1 commit into from
Jan 14, 2022
Merged

Conversation

marler8997
Copy link
Owner

@marler8997 marler8997 commented Jan 14, 2022

On Windows, zigup currently uses a ".bat" file to set the default compiler and redirect any calls to the actual compiler executable. This means than when invoking zig, it requires a shell and it breaks some programs from finding zig because they don't expect it to be zig.bat. This Change replaces this batch file with a small executable instead so no shell is required and it uses the expected .exe extension.

Note that another solution to this would be to use the equivalent of posix's execve system call. I've started a userspace loader on windows to implement this https://github.com/marler8997/ldwin32

@marler8997 marler8997 force-pushed the exelink branch 4 times, most recently from e3a312a to 02dd8d2 Compare January 14, 2022 21:10
@marler8997 marler8997 merged commit 36616a7 into master Jan 14, 2022
@marler8997 marler8997 deleted the exelink branch January 15, 2022 05:50
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