Skip to content

Commit b4e31a0

Browse files
jonpryordellis1972
authored andcommitted
[mono-runtimes] Encode $(HostOS) into host build path. (#18)
Using build-tools/mono-runtimes/obj/$(Configuration)/host as the mono build path for the "host" OS is problematic when the source tree is shared amongst multiple different operating systems, e.g. if the `xamarin-android` checkout is in Dropbox, and the "same" Dropbox folder is shared between OS X and Linux. There Can Be Only One™ host OS, as it were. (This is presumably fine for non-host builds, as cross compoilers are used, and the cross compilers should presumably compatible object code across operating systems...) Improve support for cross-OS source tree sharing, and encode `$(HostOS)` into the build path, resulting in build-tools/mono-runtimes/obj/$(Configuration)/host-$(HostOS). This would allow OS X and Linux to share source trees without stepping on each others toes. (Not currently encoded: OS architecture. There Can Be Only One™ "Linux" build tree with this setup...)
1 parent 9836bef commit b4e31a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build-tools/mono-runtimes/mono-runtimes.projitems

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<OutputProfiler>libmono-profiler-log.so</OutputProfiler>
2020
<OutputMonoPosixHelper>libMonoPosixHelper.so</OutputMonoPosixHelper>
2121
</_MonoRuntime>
22-
<_MonoRuntime Include="host" Condition="'$(HostOS)'=='Darwin'">
22+
<_MonoRuntime Include="host-Darwin" Condition=" '$(HostOS)' == 'Darwin' ">
2323
<Ar>ar</Ar>
2424
<As>as</As>
2525
<Cc>$(HostCc)</Cc>
@@ -36,11 +36,11 @@
3636
<OutputProfiler>libmono-profiler-log.dylib</OutputProfiler>
3737
<OutputMonoPosixHelper>libMonoPosixHelper.dylib</OutputMonoPosixHelper>
3838
</_MonoRuntime>
39-
<_MonoRuntime Include="host" Condition="'$(HostOS)'=='Linux'">
39+
<_MonoRuntime Include="host-Linux" Condition=" '$(HostOS)' == 'Linux' ">
4040
<Ar>ar</Ar>
4141
<As>as</As>
4242
<Cc>$(HostCc)</Cc>
43-
<CFlags>$(_CommonCFlags) -mmacosx-version-min=10.9</CFlags>
43+
<CFlags>$(_CommonCFlags)</CFlags>
4444
<Cxx>$(HostCxx)</Cxx>
4545
<CxxCpp>cpp</CxxCpp>
4646
<CxxFlags></CxxFlags>

0 commit comments

Comments
 (0)