Last active
June 11, 2023 15:56
-
-
Save Tetralux/821f1cab81bce979d4a74f6e46e78a81 to your computer and use it in GitHub Desktop.
A helper for compiling code with Odin on Windows
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
@ECHO OFF | |
:: Path to Odin executable | |
SET ODINPATH="C:\odin\odin.exe" | |
:: Path to the Microsoft 'vcvarsall.bat' file. | |
:: This sets the required environment vars and makes cl.exe and link.exe available in PATH. | |
SET VCVARSPATH="C:\Program Files (x86)\Microsoft Visual Studio\VC\Auxiliary\Build\vcvarsall.bat" | |
:: Only run the MSVC batch file the first time we | |
:: run this script | |
IF "%VSISSET%"=="" ( | |
SET VSISSET=x64 | |
CALL %VCVARSPATH% x64 | |
) | |
:: Actually run Odin. | |
%ODINPATH% %* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment