From 601a0cedecb48b39b23d2b97ee80f4fb468603b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Mon, 6 Sep 2021 10:37:24 +0200 Subject: [PATCH] Fix MinGW support --- .github/workflows/linux-build.yml | 2 +- .github/workflows/windows-build.yml | 2 +- xmake.lua | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml index df2ae56a9..2b06f9201 100644 --- a/.github/workflows/linux-build.yml +++ b/.github/workflows/linux-build.yml @@ -67,7 +67,7 @@ jobs: # Build the engine - name: Build Nazara - run: xmake -v + run: xmake # Install the result files - name: Install Nazara diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index 0131c28cf..6e51fbf01 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -59,7 +59,7 @@ jobs: # Build the engine - name: Build Nazara - run: xmake.exe -v + run: xmake.exe # Install the result files - name: Install Nazara diff --git a/xmake.lua b/xmake.lua index aac4c2ea9..eba3d2c0a 100644 --- a/xmake.lua +++ b/xmake.lua @@ -146,6 +146,9 @@ if is_plat("windows") then add_cxxflags("/bigobj", "/permissive-", "/Zc:__cplusplus", "/Zc:referenceBinding", "/Zc:throwingNew") add_cxflags("/w44062") -- Enable warning: switch case not handled add_cxflags("/wd4251") -- Disable warning: class needs to have dll-interface to be used by clients of class blah blah blah +elseif is_plat("mingw") then + add_cxflags("-Og", "-Wa,-mbig-obj") + add_ldflags("-Wa,-mbig-obj") end for name, module in pairs(modules) do