Fix compilation with Mono master

Bugs, bugs everywhere! https://bugzilla.xamarin.com/show_bug.cgi?id=42606
This commit is contained in:
JustArchi
2016-07-21 23:24:03 +02:00
parent ba40448e7d
commit b64491e284
5 changed files with 39 additions and 0 deletions

View File

@@ -115,6 +115,10 @@
copy "$(TargetDir)$(TargetName).exe" "$(SolutionDir)out\ASF-ConfigGenerator.exe"
</PostBuildEvent>
<PostBuildEvent Condition=" '$(OS)' == 'Unix' AND '$(ConfigurationName)' == 'Release' ">
if [[ -f "$(SolutionDir)/mono_envsetup.sh" ]]; then
source "$(SolutionDir)/mono_envsetup.sh"
fi
mono --llvm --server -O=all "$(SolutionDir)tools/ILRepack/ILRepack.exe" /ndebug /internalize /parallel /targetplatform:v4 /wildcards /out:"$(SolutionDir)out/ASF-ConfigGenerator.exe" "$(TargetDir)$(TargetName).exe" "$(TargetDir)*.dll"
rm "$(SolutionDir)out/ASF-ConfigGenerator.exe.config"
</PostBuildEvent>