summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml16
-rw-r--r--CMakeLists.txt1
2 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1013f26ff..3430cc877 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -205,3 +205,19 @@ jobs:
run: |
source $HOME/emsdk/emsdk_env.sh
./scripts/emcc-tests.sh
+
+ # Windows + gcc needs work before the tests will run, so just test the compile
+ build-mingw:
+ name: mingw
+ runs-on: windows-latest
+ steps:
+ - uses: actions/setup-python@v1
+ with:
+ python-version: '3.x'
+ - uses: actions/checkout@v1
+ - name: cmake
+ run: |
+ mkdir -p out
+ cmake -S . -B out -G "MSYS Makefiles"
+ - name: build
+ run: cmake --build out
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bc6e517ca..784fbcd64 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -222,6 +222,7 @@ else()
add_compile_flag("-Wswitch") # we explicitly expect this in the code
if(WIN32)
add_compile_flag("-D_GNU_SOURCE")
+ add_compile_flag("-D__STDC_FORMAT_MACROS")
add_link_flag("-Wl,--stack,8388608")
elseif(NOT EMSCRIPTEN)
add_compile_flag("-fPIC")