diff options
author | Ankit Jain <radical@gmail.com> | 2017-08-12 00:53:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-12 00:53:45 +0300 |
commit | 43cec6c0dda0b5b0fbaaabc019a760965b573d55 (patch) | |
tree | cd3fc3e6e35dc8d733706fd3d0d81dbb00d96dff /scripts | |
parent | 13dc0bb2c24d70bdf3c570574e92637f0b3da341 (diff) |
Install Roslyn binaries, including msbuild tasks to msbuild/Roslyn (#5251)
.. directory, which is `$mono_prefix/lib/mono/msbuild/15.0/bin/Roslyn/`
Mono installs `csc.exe` but the corresponding
`Microsoft.Build.Tasks.CodeAnalysis.dll` required for supporting msbuild C#
projects is installed by msbuild. But these two can get out of sync,
like they did and had to be worked around in
https://github.com/mono/msbuild/pull/19 .
Instead, we now install all the relevant roslyn bits (C# and VB) from the same
source. Only the msbuild specific files are copied to the Roslyn folder.
VBCSCompiler, csi and their dependencies are symlinked from `lib/mono/4.5`.
Also:
- csi.exe is included since the tool is surfaced as an msbuild task,
and that requires the *Scripting.dll assemblies.
- VBCSCompiler* - shared compiler is installed
- vbc.exe doesn't work on mono currently, so skipping that
- And `Microsoft.DiaSymReader.Native.{amd64,x86}.dll` are dropped.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.am | 6 | ||||
-rw-r--r-- | scripts/csi.in | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am index e865d730391..b208d06d1f7 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -37,6 +37,7 @@ bin_SCRIPTS = \ peverify \ mcs \ csc \ + csi \ mono-package-runtime \ mono-heapviz \ $(scripts_mono_configuration_crypto) @@ -159,6 +160,7 @@ EXTRA_DIST = \ mcs.in \ csc.in \ dmcs.in \ + csi.in \ mono-package-runtime \ mono-test-install \ mono-heapviz \ @@ -211,6 +213,10 @@ dmcs: dmcs.in Makefile $(REWRITE_COMMON) $(srcdir)/dmcs.in > $@.tmp mv -f $@.tmp $@ +csi: csi.in Makefile + $(REWRITE_COMMON) $(srcdir)/csi.in > $@.tmp + mv -f $@.tmp $@ + mono-service: mono-service.in Makefile $(REWRITE4) -e 's,@''exe_name@,$@,g' $(srcdir)/mono-service.in > $@.tmp mv -f $@.tmp $@ diff --git a/scripts/csi.in b/scripts/csi.in new file mode 100644 index 00000000000..4d5026fcc5f --- /dev/null +++ b/scripts/csi.in @@ -0,0 +1,2 @@ +#!/bin/sh +exec @bindir@/mono --gc-params=nursery-size=64m $MONO_OPTIONS @mono_instdir@/4.5/csi.exe "$@" |