Last active
July 18, 2023 14:47
-
-
Save kmatt/4d2bb9e19e1758c3410435ad3c407d7b to your computer and use it in GitHub Desktop.
Cross compile to Windows using Zig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# On Linux or macOS | |
export CC="zig cc -target x86_64-windows-gnu" | |
export CXX="zig c++ -target x86_64-windows-gnu" | |
./configure --host x86_64-windows-gnu | |
make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment