Merge pull request #2794 from xmcclure/win-aot-basic
authormonojenkins <jo.shields+jenkins@xamarin.com>
Tue, 29 Mar 2016 16:31:13 +0000 (17:31 +0100)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Tue, 29 Mar 2016 16:31:13 +0000 (17:31 +0100)
commit9bfe20cb4e3bbaed28b883beee0e9f6fe2136b2e
tree7b8bb47e2b83ff398dfe793835ff2655fc53cbf2
parent4da080e2e8d16fd8bf39facc33a6340ab1fe57d4
parent9a0806c1b6c5231f963ff075ea13080f41736ebc
Merge pull request #2794 from xmcclure/win-aot-basic

Make AOT compilation on 64 bit windows produce executables

This PR contains three commits (see commit descriptions) which:

- Fix 64-bit debug windows builds in MSVC 2015
- Make it possible to use the tool-prefix aot option with mono/mini make fullaotcheck (necessary if you are in cygwin and wish to invoke `x86_64-w64-mingw32-gcc`)
- Change mini so that `--aot=full` successfully emits 64-bit windows executables.

Building 32 bit executables will generally fail because we do not follow cdecl. The 64 bit executables do not run properly when executed.
mono/mini/aot-compiler.c
mono/mini/image-writer.c