CC=gcc CXX=g++ cmake $LLVM_DIR -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -DLLVM_TARGETS_TO_BUILD="X86" -DCMAKE_INSTALL_PREFIX=$PREFIX
Built using the MINGW-packages repo: https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-binutils, with additional CFLAGS options to enable profiling (CFLAGS=-pg
), --with-libiconv=/mingw64
, --with-sysroot=/mingw64
, and --prefix=/opt/bindebug
- The linker without these patches, and the only configure option being
--prefix=/opt/bindebug
is nonfunctional, bombing with obscure errors such as: