diff options
author | Matt Ellis <matell@microsoft.com> | 2015-08-10 22:36:57 -0700 |
---|---|---|
committer | Matt Ellis <matell@microsoft.com> | 2015-08-17 17:05:06 -0700 |
commit | 614d58f99a8385bb54281f2b7fb9d5dd6672a519 (patch) | |
tree | dfc013c785e9aaee12526141c8411dc2fd00e7f5 /src/mscorlib/Tools/BclRewriter/BclRewriter.targets | |
parent | 793558ed5b888b57553df4c8a3e740aa171e51d3 (diff) | |
download | coreclr-614d58f99a8385bb54281f2b7fb9d5dd6672a519.tar.gz coreclr-614d58f99a8385bb54281f2b7fb9d5dd6672a519.tar.bz2 coreclr-614d58f99a8385bb54281f2b7fb9d5dd6672a519.zip |
Build mscolrib.dll on Unix
Initial work to get mscorlib.dll building via Roslyn + MSBuild running
on top of Mono on Linux.
- Use a newer version of BclRewriter.exe which works cross-platform,
the major difference here is that now we need to specify the input
assembly as a named argument instead (since fully qualified paths on
Unix look like flags on Windows).
- The ResGen we use comes from Mono, which does not support the -d
flag, so we need to stop passing defines to ResGen. I know the mono
folks recently did some work to address this, but long term we need
to move towards getting our ResGen.exe running on CoreCLR and use
that instead.
- Don't require that mono is installed in order to build coreclr. If
mono is not on the path, skip the build step to enable folks to do
development without Mono. In this case, they will need to continue
to build mscorlib.dll on Windows, targeting Unix.
- Mono stability has been an issue for folks that have buddy tested
this. I've found that recent mono 4.2 builds, when run with the
Boehm GC work well for me. Other folks have other builds they like
instead. The `skipmscorlib` flag can be passed to build.sh if you
want to skip building mscorlib.dll locally.
Diffstat (limited to 'src/mscorlib/Tools/BclRewriter/BclRewriter.targets')
-rw-r--r-- | src/mscorlib/Tools/BclRewriter/BclRewriter.targets | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mscorlib/Tools/BclRewriter/BclRewriter.targets b/src/mscorlib/Tools/BclRewriter/BclRewriter.targets index 837f14fd43..3588a7750b 100644 --- a/src/mscorlib/Tools/BclRewriter/BclRewriter.targets +++ b/src/mscorlib/Tools/BclRewriter/BclRewriter.targets @@ -24,7 +24,7 @@ <OSPlatform Condition="'$(TargetsWindows)' != 'true'">unix</OSPlatform> </PropertyGroup> - <Exec Command=""$(BclRewriterCommand)" "@(AnnotatedAssembly)" "/out:$(BclRewriterOutput)" "/include:$(BclRewriterModelFile)" /platform:$(OSPlatform) /architecture:$(Platform) /flavor:$(_BuildType) /define:$(DefineConstants) /keepTempFiles+" StandardOutputImportance="Normal" /> + <Exec Command=""$(BclRewriterCommand)" -in:"@(AnnotatedAssembly)" -out:"$(BclRewriterOutput)" -include:"$(BclRewriterModelFile)" -platform:$(OSPlatform) -architecture:$(Platform) -flavor:$(_BuildType) -define:"$(DefineConstants)" -keepTempFiles+" StandardOutputImportance="Normal" /> <!-- Update the location of the symbol file--> <PropertyGroup> |