Last active
March 10, 2019 12:17
-
-
Save ezhov-da/9df4bd4c988da0284e78c3110c54b6f7 to your computer and use it in GitHub Desktop.
bat initialize variable
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
rem устанавливается в начале | |
setlocal enabledelayedexpansion | |
rem обращение в цикле или в if через | |
rem !…! вместо %…% | |
if "%BUILDMODE%" == "debug" ( | |
echo INFO: Setting up debug mode environment | |
set OPTFLAGS=/Od | |
set CCFLAGS=!OPTFLAGS! /MDd /Z7 | |
) else ( | |
echo INFO: Setting up release mode environment | |
set OPTFLAGS=/O2 | |
set CCFLAGS=!OPTFLAGS! /MD | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment