This commit is contained in:
Nikita Smith
2026-06-02 12:10:23 -07:00
committed by Ryan Fleury
parent bf1fd5fbe8
commit a60b61cafd
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -9,14 +9,14 @@ set TORTURE_ARGS=
set RUN_TORTURE=1 set RUN_TORTURE=1
:parse_args :parse_args
if "%~1" == "" goto parse_done if "%~1" == "" goto parse_done
if "%~1" == "--" goto parse_torture_args if "%~1" == "--" goto parse_torture_args
if /i "%~1" == "msvc" set CC_VALUES=msvc && shift /1 && goto parse_args if /i "%~1" == "msvc" set CC_VALUES=msvc && shift /1 && goto parse_args
if /i "%~1" == "clang" set CC_VALUES=clang && shift /1 && goto parse_args if /i "%~1" == "clang" set CC_VALUES=clang && shift /1 && goto parse_args
if /i "%~1" == "debug" set MODE_VALUES=debug && shift /1 && goto parse_args if /i "%~1" == "debug" set MODE_VALUES=debug && shift /1 && goto parse_args
if /i "%~1" == "release" set MODE_VALUES=release && shift /1 && goto parse_args if /i "%~1" == "release" set MODE_VALUES=release && shift /1 && goto parse_args
if /i "%~1" == "no_torture" set RUN_TORTURE=0 && shift /1 && goto parse_args if /i "%~1" == "no_torture" set RUN_TORTURE=0 && shift /1 && goto parse_args
echo usage: run_tests.bat [msvc^|clang] [debug^|release] [no_torture] [-- <torture args>] echo usage: %~nx0 [msvc^|clang] [debug^|release] [no_torture] [-- torture-args]
exit /b 1 exit /b 1
:parse_torture_args :parse_torture_args
+1 -1
View File
@@ -32,7 +32,7 @@ while [[ $# -gt 0 ]]; do
shift shift
;; ;;
*) *)
echo "usage: $0 [clang|clang-*|gcc|gcc-*] [debug|release] [no_torture] [-- <torture args>]" echo "usage: $0 [clang|clang-*|gcc|gcc-*] [debug|release] [no_torture] [-- torture-args]"
exit 1 exit 1
;; ;;
esac esac