File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -156,21 +156,16 @@ echo on
156
156
/p:UseTestMarker=%UseTestMarker% %GITProperty% ^
157
157
%1 %2 %3 %4 %5 %6 %7 %8 %9
158
158
159
- if " %Regen% " == " true" call :Regen
160
- @ echo off
161
- exit /b %ERRORLEVEL%
162
-
163
- :Regen
164
- echo on
165
- call " %dir% find_msbuild.bat" %MSBUILD%
166
- if not ERRORLEVEL 1 %MSBUILD% " %dir% regen.vcxproj" /t:%target% %parallel% %verbose% ^
167
- /p:IncludeExternals=%IncludeExternals% ^
168
- /p:Configuration=%conf% /p:Platform=%platf% ^
169
- /p:UseTestMarker=%UseTestMarker% %GITProperty% ^
170
- %1 %2 %3 %4 %5 %6 %7 %8 %9
159
+ @ if not ERRORLEVEL 1 @ if " %Regen% " == " true" (
160
+ %MSBUILD% " %dir% regen.vcxproj" /t:%target% %parallel% %verbose% ^
161
+ /p:IncludeExternals=%IncludeExternals% ^
162
+ /p:Configuration=%conf% /p:Platform=%platf% ^
163
+ /p:UseTestMarker=%UseTestMarker% %GITProperty% ^
164
+ %1 %2 %3 %4 %5 %6 %7 %8 %9
165
+ )
171
166
172
167
@ echo off
173
- goto : eof
168
+ exit /b %ERRORLEVEL%
174
169
175
170
:Version
176
171
rem Display the current build version information
Original file line number Diff line number Diff line change @@ -1331,7 +1331,8 @@ def generate_module_def(f, mod):
1331
1331
def main (srcfile , dump_module = False ):
1332
1332
argv0 = sys .argv [0 ]
1333
1333
components = argv0 .split (os .sep )
1334
- argv0 = os .sep .join (components [- 2 :])
1334
+ # Always join with '/' so different OS does not keep changing the file
1335
+ argv0 = '/' .join (components [- 2 :])
1335
1336
auto_gen_msg = common_msg % argv0
1336
1337
mod = asdl .parse (srcfile )
1337
1338
if dump_module :
You can’t perform that action at this time.
0 commit comments