Added a workaround for an issue with the compiler server on 32-bit linux. (#16405)
commitfbdad781018886353f8a02a23eee9957a092bbf3
authorSteve Pfister <steveisok@users.noreply.github.com>
Thu, 22 Aug 2019 16:22:22 +0000 (22 12:22 -0400)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Thu, 22 Aug 2019 16:22:22 +0000 (22 18:22 +0200)
tree519f107bc33c2a221327f4dd5c95e705c022febe
parent4dd0a137a4d39531b0a5aee6316f31c8335a4173
Added a workaround for an issue with the compiler server on 32-bit linux. (#16405)

Currently, if the process is 32-bit, roslyn tries to determine how much
memory is available.  To do that, it tries to pinvoke into GlobalMemoryStatusEx,
which is not supported on mono.

Without it, the compiler server bombs on https://github.com/dotnet/roslyn/blob/0e63260c5afb3fb5b74c357dd250e500172bcd63/src/Compilers/Server/VBCSCompiler/NamedPipeClientConnection.cs#L55-L59
mono/mini/intrinsics.c