diff options
author | lateralusX <lateralusx.github@gmail.com> | 2019-04-29 11:17:45 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2019-04-30 13:14:57 +0300 |
commit | 81ce33f6b6a2cc70ac3f9dd91073e747b5739611 (patch) | |
tree | 226a54b7a91c2d2ef64008ea612a6a36b6bf5131 /mcs/build | |
parent | 92cb0369bb8e1603955ae758f6e501be5ffc59be (diff) |
Add minimal COM support into WinAOT BCL profile and Windows Mono runtime.
Technologies like SharpDX uses a minimal set of COM support from runtime
and System.Runtime.InteropServices.Marshal:
AddRef
Release
QueryInterface
All these are low level wrappers around methods in IUknown interface and
doesn't need any of the additional runtime COM support enabled to work.
Technologies like CoreRT includes these methods in their full AOT
profile, meaning that SharpDX can run on CoreRT on Windows platforms. Mono's
WinAOT profile and runtime currently don't, making it impossible to use
SharpDX.
This PR adds the needed methods into WinAOT profile and also make
sure corresponding icalls always gets included on Windows build Mono runtime.
Diffstat (limited to 'mcs/build')
-rw-r--r-- | mcs/build/profiles/winaot.make | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mcs/build/profiles/winaot.make b/mcs/build/profiles/winaot.make index d893f976f91..7e0bfb507c4 100644 --- a/mcs/build/profiles/winaot.make +++ b/mcs/build/profiles/winaot.make @@ -23,6 +23,7 @@ PROFILE_MCS_FLAGS = \ -d:FULL_AOT_RUNTIME \ -d:DISABLE_COM \ -d:WIN_PLATFORM \ + -d:WINAOT \ -nowarn:1699 \ -nostdlib \ $(PLATFORM_DEBUG_FLAGS) |