Skip to content

Instantly share code, notes, and snippets.

@fire
Last active January 18, 2021 17:17
Show Gist options
  • Select an option

  • Save fire/b975b2f41e5ff59824d9dd7af083414a to your computer and use it in GitHub Desktop.

Select an option

Save fire/b975b2f41e5ff59824d9dd7af083414a to your computer and use it in GitHub Desktop.
cd /tmp
# Use a version from mstorsjo/llvm-mingw. This is one I've tested.
wget https://github.com/mstorsjo/llvm-mingw/releases/download/20201020/llvm-mingw-20201020-ucrt-ubuntu-18.04.tar.xz
tar xvf llvm-mingw-20201020-ucrt-ubuntu-18.04.tar.xz
sudo mv llvm-mingw-20201020-ucrt-ubuntu-18.04 /opt/llvm-mingw
export PATH=/opt/llvm-mingw/bin:$PATH
# See https://docs.godotengine.org/en/stable/development/compiling/compiling_for_x11.html
sudo dnf install scons pkgconfig libX11-devel libXcursor-devel libXrandr-devel libXinerama-devel \
libXi-devel mesa-libGL-devel mesa-libGLU-devel alsa-lib-devel pulseaudio-libs-devel \
libudev-devel yasm gcc-c++ -y
## Mine
## scons platform=windows -j16 bits=64 tests=yes use_mingw=yes use_llvm=yes use_thinlto=yes LINKFLAGS='-Wl,-pdb=' CCFLAGS='-g -gcodeview' debug_symbols=no deprecated=no target=release_debug custom_modules=../modules
## General purpose
scons platform=windows -j16 bits=64 use_mingw=yes use_llvm=yes use_thinlto=yes LINKFLAGS='-Wl,-pdb=' CCFLAGS='-g -gcodeview' debug_symbols=no target=release_debug
# Can also use Windows 32 bit and bruvzg suggests Windows arm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment