diff options
author | John Hodge <tpg@mutabah.net> | 2018-03-10 15:56:33 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2018-03-10 15:56:33 +0800 |
commit | 56be5aae9d45c898f9c2e608f17457c8d76a2e0c (patch) | |
tree | c088f757b6b2d97bf7b6025adc49fe4e46b8d28e | |
parent | 8989678d9e06373272ac78797520538a5c6220e7 (diff) | |
download | mrust-56be5aae9d45c898f9c2e608f17457c8d76a2e0c.tar.gz |
VSProject - Add some new scripts (attempts to build rustc, run testrunner, ..)
-rw-r--r-- | vsproject/build_rustc_minicargo.cmd | 18 | ||||
-rw-r--r-- | vsproject/build_std_and_hello.cmd | 12 | ||||
-rw-r--r-- | vsproject/run_tests.cmd | 6 |
3 files changed, 22 insertions, 14 deletions
diff --git a/vsproject/build_rustc_minicargo.cmd b/vsproject/build_rustc_minicargo.cmd index cdebb8bd..94373df1 100644 --- a/vsproject/build_rustc_minicargo.cmd +++ b/vsproject/build_rustc_minicargo.cmd @@ -1,17 +1,7 @@ @echo off -x64\Release\minicargo.exe ..\rustc-1.19.0-src\src\libstd --script-overrides ..\script-overrides\stable-1.19.0 +call build_std_and_hello.cmd if %errorlevel% neq 0 exit /b %errorlevel% -x64\Release\minicargo.exe ..\rustc-1.19.0-src\src\libpanic_unwind --script-overrides ..\script-overrides\stable-1.19.0 -if %errorlevel% neq 0 exit /b %errorlevel% -x64\Release\minicargo.exe ..\rustc-1.19.0-src\src\libtest --script-overrides ..\script-overrides\stable-1.19.0 -if %errorlevel% neq 0 exit /b %errorlevel% - -x64\Release\mrustc.exe ..\rustc-1.19.0-src\src\test\run-pass\hello.rs -L output -o output\hello.exe -g -if %errorlevel% neq 0 exit /b %errorlevel% -output\hello.exe -if %errorlevel% neq 0 exit /b %errorlevel% - -rem mkdir output\rustc-build -rem x64\Release\minicargo.exe ..\rustc-1.19.0-src\src\rustc -L output --output-dir output\rustc-build --vendor-dir ..\rustc-1.19.0-src\src\vendor -rem if %errorlevel% neq 0 exit /b %errorlevel%
\ No newline at end of file +mkdir output\rustc-build +x64\Release\minicargo.exe ..\rustc-1.19.0-src\src\rustc -L output --output-dir output\rustc-build --vendor-dir ..\rustc-1.19.0-src\src\vendor +if %errorlevel% neq 0 exit /b %errorlevel%
\ No newline at end of file diff --git a/vsproject/build_std_and_hello.cmd b/vsproject/build_std_and_hello.cmd new file mode 100644 index 00000000..db8360ac --- /dev/null +++ b/vsproject/build_std_and_hello.cmd @@ -0,0 +1,12 @@ +@echo off +x64\Release\minicargo.exe ..\rustc-1.19.0-src\src\libstd --script-overrides ..\script-overrides\stable-1.19.0 +if %errorlevel% neq 0 exit /b %errorlevel% +x64\Release\minicargo.exe ..\rustc-1.19.0-src\src\libpanic_unwind --script-overrides ..\script-overrides\stable-1.19.0 +if %errorlevel% neq 0 exit /b %errorlevel% +x64\Release\minicargo.exe ..\rustc-1.19.0-src\src\libtest --script-overrides ..\script-overrides\stable-1.19.0 +if %errorlevel% neq 0 exit /b %errorlevel% + +x64\Release\mrustc.exe ..\rustc-1.19.0-src\src\test\run-pass\hello.rs -L output -o output\hello.exe -g +if %errorlevel% neq 0 exit /b %errorlevel% +output\hello.exe +if %errorlevel% neq 0 exit /b %errorlevel% diff --git a/vsproject/run_tests.cmd b/vsproject/run_tests.cmd new file mode 100644 index 00000000..7465c145 --- /dev/null +++ b/vsproject/run_tests.cmd @@ -0,0 +1,6 @@ +@echo off +call build_std_and_hello.cmd +if %errorlevel% neq 0 exit /b %errorlevel% + +mkdir output\tests\ +x64\Release\testrunner.exe ..\rustc-1.19.0-src\src\test\run-pass -o output\tests\
\ No newline at end of file |