diff options
author | monojenkins <jo.shields+jenkins@xamarin.com> | 2020-02-17 14:02:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-17 14:02:18 +0300 |
commit | 79bb3e2031986235ee0eb2c5ad80706ecc777678 (patch) | |
tree | 85c696e096fc1d87676bf703d08efc17c872ce5f /msvc | |
parent | fed64a7019de9169b3ff65a96f9077eb8f230e2c (diff) |
[mono] Fix msvc mono build and add `CopyMonoRuntimeFilesFromArtifactsToDestination` target (#18797)
Fixes
```
fatal error C1083: Cannot open include file: '../../support/libm/complex.c': No such file or directory
```
when `mono-netcore.sln` is opened in vs2019
Also, add `CopyMonoRuntimeFilesFromArtifactsToDestination` target to mono.proj to be able to copy mono runtime bits to any folder (needed for the performance team, cc @fanyang-mono)
Co-authored-by: Egor Bogatov <egorbo@gmail.com>
Diffstat (limited to 'msvc')
-rw-r--r-- | msvc/mono.props | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/msvc/mono.props b/msvc/mono.props index d9f6af48dc0..7fc8a626ec6 100644 --- a/msvc/mono.props +++ b/msvc/mono.props @@ -28,7 +28,8 @@ <!-- When true, mono binaries will link and include BTLS. When false, mono binaries will not link and include BTLS. --> <MONO_ENABLE_BTLS>false</MONO_ENABLE_BTLS> <!-- When true, mono binaries will be compiled for use as a .NET Core runtime. --> - <MONO_ENABLE_NETCORE>false</MONO_ENABLE_NETCORE> + <MONO_ENABLE_NETCORE Condition="Exists('..\mono.proj')">true</MONO_ENABLE_NETCORE> + <MONO_ENABLE_NETCORE Condition="!Exists('..\mono.proj')">false</MONO_ENABLE_NETCORE> </PropertyGroup> <PropertyGroup Label="MonoDirectories"> <MonoSourceLocation Condition="'$(MonoSourceLocation)' == '' ">..</MonoSourceLocation> |