File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,11 @@ if [ "${MONO}" == "1" ]; then
48
48
cp -r /root/mono-glue/GodotSharp/GodotSharpEditor/Generated modules/mono/glue/GodotSharp/GodotSharpEditor/
49
49
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH :/usr/lib/pkgconfig/
50
50
51
- $SCONS platform=x11 CC=$CC CXX=$CXX $OPTIONS $OPTIONS_MONO tools=yes target=release_debug copy_mono_root=yes
51
+ # Workaround for MSBuild segfault on Ubuntu containers, we build the CIL on Fedora and copy here.
52
+ mkdir -p bin
53
+ cp -r /root/mono-glue/cil/GodotSharp bin/
54
+
55
+ $SCONS platform=x11 CC=$CC CXX=$CXX $OPTIONS $OPTIONS_MONO tools=yes target=release_debug copy_mono_root=yes build_cil=no
52
56
mkdir -p /root/out/tools-mono
53
57
cp -rvp bin/* /root/out/tools-mono
54
58
rm -rf bin
Original file line number Diff line number Diff line change @@ -26,6 +26,14 @@ if [ "${MONO}" == "1" ]; then
26
26
27
27
rm -rf /root/mono-glue/*
28
28
xvfb-run bin/godot.x11.opt.tools.64.mono --generate-mono-glue /root/mono-glue || /bin/true
29
+
30
+ # Build and copy CIL that we'll need for Ubuntu 14.04 Linux builds
31
+ # to workaround Mono MSBuild segfault in our containers.
32
+ xvfb-run bin/godot.x11.opt.tools.64.mono --generate-mono-glue modules/mono/glue || /bin/true
33
+ ${SCONS} platform=x11 bits=64 ${OPTIONS} target=release_debug tools=yes module_mono_enabled=yes mono_glue=yes build_cil=yes
34
+
35
+ mkdir /root/mono-glue/cil
36
+ cp -r bin/GodotSharp /root/mono-glue/cil/
29
37
fi
30
38
31
39
echo " Mono glue generated successfully"
Original file line number Diff line number Diff line change @@ -43,7 +43,11 @@ if [ "${MONO}" == "1" ]; then
43
43
cp -r /root/mono-glue/GodotSharp/GodotSharp/Generated modules/mono/glue/GodotSharp/GodotSharp/
44
44
cp -r /root/mono-glue/GodotSharp/GodotSharpEditor/Generated modules/mono/glue/GodotSharp/GodotSharpEditor/
45
45
46
- $SCONS platform=server CC=$CC CXX=$CXX $OPTIONS $OPTIONS_MONO tools=yes target=release_debug copy_mono_root=yes
46
+ # Workaround for MSBuild segfault on Ubuntu containers, we build the CIL on Fedora and copy here.
47
+ mkdir -p bin
48
+ cp -r /root/mono-glue/cil/GodotSharp bin/
49
+
50
+ $SCONS platform=server CC=$CC CXX=$CXX $OPTIONS $OPTIONS_MONO tools=yes target=release_debug copy_mono_root=yes build_cil=no
47
51
mkdir -p /root/out/tools-mono
48
52
cp -rvp bin/* /root/out/tools-mono
49
53
rm -rf bin
You can’t perform that action at this time.
0 commit comments