Skip to content

Commit 773423d

Browse files
authored
Merge pull request #70 from godotengine/windows-net_4_x
Windows: Request net_4_x explicitly so that configure aborts if it can't be built
2 parents d387018 + 57fdc2c commit 773423d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Dockerfile.windows

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ RUN if [ -z "${mono_version}" ]; then echo -e "\n\nargument mono-version is mand
1010
cd /root/${mono_version} && \
1111
patch -p1 < /root/files/patches/wine-mono.patch && \
1212
export WINE_BITS=64 && \
13-
bash /root/files/mono-build-win32.sh --prefix=/root/dependencies/mono-64 --host=x86_64-w64-mingw32 && \
13+
bash /root/files/mono-build-win32.sh --prefix=/root/dependencies/mono-64 --host=x86_64-w64-mingw32 \
14+
--with-profile4_x=yes --with-runtime-preset=net_4_x && \
1415
git clean -fdx && \
1516
cp /root/dependencies/mono-64/bin/libMonoPosixHelper.dll /root/dependencies/mono-64/bin/MonoPosixHelper.dll && \
1617
rm -f /root/dependencies/mono-64/bin/mono /root/dependencies/mono-64/bin/mono-sgen && \
1718
ln -s /usr/bin/mono /root/dependencies/mono-64/bin/mono && \
1819
ln -s /usr/bin/mono-sgen /root/dependencies/mono-64/bin/mono-sgen && \
1920
cp -rvp /etc/mono /root/dependencies/mono-64/etc && \
2021
export WINE_BITS=32 && \
21-
bash /root/files/mono-build-win32.sh --prefix=/root/dependencies/mono-32 --host=i686-w64-mingw32 && \
22+
bash /root/files/mono-build-win32.sh --prefix=/root/dependencies/mono-32 --host=i686-w64-mingw32 \
23+
--with-profile4_x=yes --with-runtime-preset=net_4_x && \
2224
cd /root && \
2325
rm -rf /root/${mono_version} && \
2426
cp /root/dependencies/mono-32/bin/libMonoPosixHelper.dll /root/dependencies/mono-32/bin/MonoPosixHelper.dll && \

build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ $podman_build -t godot-export:${img_version} -f Dockerfile.export . 2>&1 | tee l
103103

104104
$podman_build_mono -t godot-mono:${img_version} -f Dockerfile.mono . 2>&1 | tee logs/mono.log
105105
$podman_build_mono -t godot-mono-glue:${img_version} -f Dockerfile.mono-glue . 2>&1 | tee logs/mono-glue.log
106+
# The ulimit below is necessary to use Wine to workaround Mono cross-compilation bugs (see GH-32).
106107
$podman_build_mono -t godot-windows:${img_version} -f Dockerfile.windows --ulimit nofile=65536 . 2>&1 | tee logs/windows.log
107108
$podman_build_mono -t godot-ubuntu-64:${img_version} -f Dockerfile.ubuntu-64 . 2>&1 | tee logs/ubuntu-64.log
108109
$podman_build_mono -t godot-ubuntu-32:${img_version} -f Dockerfile.ubuntu-32 . 2>&1 | tee logs/ubuntu-32.log

0 commit comments

Comments
 (0)