trying to rewrite the bat files in light of delayed expansion... not going well. what is happening? I hate windows cmd shell
This commit is contained in:
19
activate.bat
19
activate.bat
@@ -1,23 +1,14 @@
|
|||||||
FOR /r "C:\Program Files\Microsoft Visual Studio" %%G IN (*vcvars64.bat) DO (
|
SETLOCAL ENABLEDELAYEDEXPANSION
|
||||||
SET "_file=%%G"
|
|
||||||
SET "_comp=%_file:\VC\=%"
|
|
||||||
IF NOT "%_comp%" == "%_file%" Call "%_file%"
|
|
||||||
)
|
|
||||||
|
|
||||||
FOR /r "C:\Program Files\Microsoft Visual Studio" %%G IN (*vcvars64.bat) DO (
|
FOR /r "C:\Program Files\Microsoft Visual Studio" %%G IN (*vcvars64.bat) DO (
|
||||||
SET "_file=%%G"
|
SET "_file=%%G"
|
||||||
SET "_comp=%_file:\VC\=%"
|
SET "_comp=!_file:\VC\=!"
|
||||||
IF NOT "%_comp%" == "%_file%" Call "%_file%"
|
IF NOT "!_comp!" == "!_file!" "!_file!"
|
||||||
)
|
)
|
||||||
|
|
||||||
FOR /r "C:\Program Files (x86)\Microsoft Visual Studio" %%G IN (*vcvars64.bat) DO (
|
FOR /r "C:\Program Files (x86)\Microsoft Visual Studio" %%G IN (*vcvars64.bat) DO (
|
||||||
SET "_file=%%G"
|
SET "_file=%%G"
|
||||||
SET "_comp=%_file:\VC\=%"
|
SET "_comp=!_file:\VC\=!"
|
||||||
IF NOT "%_comp%" == "%_file%" Call "%_file%"
|
IF NOT "!_comp!" == "!_file!" "!_file!"
|
||||||
)
|
)
|
||||||
|
|
||||||
FOR /r "C:\Program Files (x86)\Microsoft Visual Studio" %%G IN (*vcvars64.bat) DO (
|
|
||||||
SET "_file=%%G"
|
|
||||||
SET "_comp=%_file:\VC\=%"
|
|
||||||
IF NOT "%_comp%" == "%_file%" Call "%_file%"
|
|
||||||
)
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ SET flags=-Od -ZI
|
|||||||
IF "%1" == "release" (
|
IF "%1" == "release" (
|
||||||
SET flags=-O2
|
SET flags=-O2
|
||||||
)
|
)
|
||||||
@echo on
|
@ECHO on
|
||||||
SET srcs=src\*
|
SET srcs=src\*
|
||||||
mkdir bin obj
|
mkdir bin obj
|
||||||
cl %srcs% Ws2_32.lib -I inc %flags% -std:c++20 -MP -Fo:obj\\ -Fe:bin\\
|
cl %srcs% Ws2_32.lib -I inc %flags% -std:c++20 -MP -Fo:obj\\ -Fe:bin\\
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
@ECHO off
|
||||||
SETLOCAL ENABLEDELAYEDEXPANSION
|
SETLOCAL ENABLEDELAYEDEXPANSION
|
||||||
|
|
||||||
Echo [ > compile_commands.json
|
Echo [ > compile_commands.json
|
||||||
|
|||||||
Reference in New Issue
Block a user