Skip to content

Commit

Permalink
Merge branch 'rust_1.74' of https://github.com/thepowersgang/mrustc i…
Browse files Browse the repository at this point in the history
…nto rust_1.74
  • Loading branch information
thepowersgang committed Dec 14, 2024
2 parents a0ebd70 + 0e65cfe commit a4db5dc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
# define NOGDI
# include <Windows.h>
# include <DbgHelp.h>
# undef min
# undef max
#endif

TargetVersion gTargetVersion = TargetVersion::Rustc1_29;
Expand Down Expand Up @@ -382,7 +384,7 @@ int main(int argc, char *argv[])
s2 = 0;
else
s2 += 1;
s = max(s, s2);
s = std::max(s, s2);
auto e = params.infile.find_first_of('.', s);
if( e == ::std::string::npos )
e = params.infile.size() - s;
Expand Down
11 changes: 5 additions & 6 deletions vsproject/run_hello_Pick.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@echo off
rem if "%1" == "1.19" call run_local_tests_119.cmd
if "%1" == "1.29" call run_local_tests.cmd
rem if "%1" == "1.39" call run_local_tests_139.cmd
if "%1" == "1.54" call run_local_tests_154.cmd
if "%1" == "1.74" call run_local_tests_174.cmd
@if "%1" == "1.19" call run_hello_119.cmd
@if "%1" == "1.29" call run_hello.cmd
@if "%1" == "1.39" call run_hello_139.cmd
@if "%1" == "1.54" call run_hello_154.cmd
@if "%1" == "1.74" call run_hello_174.cmd
2 changes: 1 addition & 1 deletion vsproject/run_local_tests_154.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@call build_std_174.cmd
@call build_std_154.cmd
@if %errorlevel% neq 0 exit /b %errorlevel%

@mkdir %OUTDIR%\local_tests\
Expand Down
11 changes: 6 additions & 5 deletions vsproject/run_local_tests_Pick.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@if "%1" == "1.19" call run_hello_119.cmd
@if "%1" == "1.29" call run_hello.cmd
@if "%1" == "1.39" call run_hello_139.cmd
@if "%1" == "1.54" call run_hello_154.cmd
@if "%1" == "1.74" call run_hello_174.cmd
@echo off
rem if "%1" == "1.19" call run_local_tests_119.cmd
if "%1" == "1.29" call run_local_tests.cmd
rem if "%1" == "1.39" call run_local_tests_139.cmd
if "%1" == "1.54" call run_local_tests_154.cmd
if "%1" == "1.74" call run_local_tests_174.cmd

0 comments on commit a4db5dc

Please sign in to comment.