3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-14 21:08:46 +00:00

Choose runtime for .NET core DLL.

This commit is contained in:
Mathias Soeken 2018-11-14 13:47:46 -08:00
parent 727929c9af
commit 690bd8502a

View file

@ -1888,6 +1888,15 @@ class DotNetCoreDLLComponent(Component):
else:
dotnetCmdLine.extend(['Release'])
if IS_WINDOWS:
runtime = "win-" + ("x64" if VS_X64 else "x86")
elif IS_LINUX:
runtime = "linux-x64" if LINUX_X64 else ""
elif IS_OSX:
runtime = "osx-x64" if LINUX_X64 else ""
if runtime != "":
dotnetCmdLine.extend(['-r', runtime])
path = os.path.abspath(BUILD_DIR)
dotnetCmdLine.extend(['-o', path])