aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/BearSSL/mk/mkT0.cmd
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-02-02 12:03:44 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-02-02 12:03:44 +0100
commitdc25573ed79a0d55c5a24b20474aa8504a758a2c (patch)
tree894a85209cb933b89b3d0fdb9c2320b43412424e /test/monniaux/BearSSL/mk/mkT0.cmd
parent44b2d04414b13811868a134f1eae9eaece506b69 (diff)
downloadcompcert-kvx-dc25573ed79a0d55c5a24b20474aa8504a758a2c.tar.gz
compcert-kvx-dc25573ed79a0d55c5a24b20474aa8504a758a2c.zip
BearSSL
Diffstat (limited to 'test/monniaux/BearSSL/mk/mkT0.cmd')
-rw-r--r--test/monniaux/BearSSL/mk/mkT0.cmd32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/monniaux/BearSSL/mk/mkT0.cmd b/test/monniaux/BearSSL/mk/mkT0.cmd
new file mode 100644
index 00000000..98955625
--- /dev/null
+++ b/test/monniaux/BearSSL/mk/mkT0.cmd
@@ -0,0 +1,32 @@
+@echo off
+
+rem =====================================================================
+rem This script uses the command-line C# compiler csc.exe, which is
+rem provided with the .NET framework. We need framework 3.5 or later
+rem (some of the code uses features not available in the language version
+rem implemented in the compiler provided with framework 2.0.50727).
+rem =====================================================================
+
+if exist "%SystemRoot%\Microsoft.NET\Framework\v3.5\csc.exe" (
+ set CSC="%SystemRoot%\Microsoft.NET\Framework\v3.5\csc.exe"
+ goto do_compile
+)
+if exist "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\csc.exe" (
+ set CSC="%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\csc.exe"
+ goto do_compile
+)
+if exist "%SystemRoot%\Microsoft.NET\Framework64\v3.5\csc.exe" (
+ set CSC="%SystemRoot%\Microsoft.NET\Framework64\v3.5\csc.exe"
+ goto do_compile
+)
+if exist "%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\csc.exe" (
+ set CSC="%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\csc.exe"
+ goto do_compile
+)
+
+echo C# compiler not found
+exit 1
+
+:do_compile
+%CSC% /nologo /out:T0Comp.exe /main:T0Comp /res:T0\kern.t0,t0-kernel T0\*.cs
+if %errorlevel% neq 0 exit /b %errorlevel%