Skip to content

Instantly share code, notes, and snippets.

@minnyres
minnyres / build-mingw.sh
Last active May 7, 2022 14:46
Bash scripts to build MinGW-w64 cross toolchains
#!/bin/bash
set -e
help_msg="Usage: ./gcc-mingw.sh -arch=[x86|x64]"
if [ $# == 1 ]; then
if [ $1 == "-arch=x86" ]; then
arch=x86
elif [ $1 == "-arch=x64" ]; then