Skip to content

Commit b67e9bc

Browse files
rokupsddobrev
authored andcommitted
Force-set platform type to managed targets. (#1011)
In some environments mono defaults building managed targets in architecture different from the host (like AnyCPU or x86 on x64 host). For example on x64 host (linux) build system would produce i686 architecture managed executables while native libraries are built as amd64. In such case managed executables are unable to load native libraries because they target different native architectures. This change ensures architecture consistency between all built binaries.
1 parent 05445f3 commit b67e9bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build/Helpers.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ end
100100
function SetupManagedProject()
101101
language "C#"
102102
location ("%{wks.location}/projects")
103+
buildoptions {"/platform:".._OPTIONS["arch"]}
103104

104105
dotnetframework "4.6"
105106

0 commit comments

Comments
 (0)