toyspp

toyspp.git
git clone git://git.lenczewski.org/toyspp.git
Log | Files | Refs | Submodules | README | LICENSE

build_win.sh (350B)


      1 #!/bin/sh
      2 
      3 BIN="$(realpath ./opt/bin/x64)" . ./thirdparty/msvc-wine/msvcenv-native.sh
      4 
      5 CC="clang++ --target=x86_64-pc-windows-msvc"
      6 WARNINGS="-Wall -Wextra -Wpedantic ${WERROR:+-Werror} -Wno-format-pedantic"
      7 FLAGS="-std=c++20 -Og -g -gcodeview -fuse-ld=lld -Wl,/debug:full,/pdb:"
      8 
      9 set -ex
     10 
     11 mkdir -p bin
     12 
     13 $CC -o bin/test.exe test.cpp $WARNINGS $FLAGS