common.windows: Optimize image size removing MXE sources

Suggested-by: Commaster <Commaster@users.noreply.github.com>

See #181
This commit is contained in:
Jean-Christophe Fillion-Robin 2018-06-09 18:23:50 -04:00
parent 85593886fd
commit eabac20a8a
No known key found for this signature in database
GPG Key ID: BAF1E1AEB9097A41

View File

@ -91,6 +91,10 @@ RUN \
cd /usr/src/mxe && \
make -j$(nproc) && \
#
# Cleanup: Remove all expect "usr" directory
#
find . -maxdepth 1 -type d \( -path ./usr -o -path ".$" \) -prune -o -print -exec rm -rf {} \; && \
#
# Update MXE toolchain file
#
echo 'set(CMAKE_CROSSCOMPILING_EMULATOR "/usr/bin/wine")' >> ${CMAKE_TOOLCHAIN_FILE} && \