diff options
| author | Arthur LAURENT <[email protected]> | 2022-06-10 17:25:44 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2022-06-10 18:46:53 +0200 |
| commit | 4331ffcbbb032102f16b0a7516c690b64516e824 (patch) | |
| tree | e436d46e93df69e103bb694f76a0c946d104e897 /xmake/rules/qt/env | |
| parent | 400d06537eb5271264a7d7e47b7433da4e854d42 (diff) | |
Apply PR suggestions
Diffstat (limited to 'xmake/rules/qt/env')
| -rw-r--r-- | xmake/rules/qt/env/xmake.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/rules/qt/env/xmake.lua b/xmake/rules/qt/env/xmake.lua index 4cc39794c..47bc0760c 100644 --- a/xmake/rules/qt/env/xmake.lua +++ b/xmake/rules/qt/env/xmake.lua @@ -34,6 +34,10 @@ rule("qt.env") target:add("runenvs", "PATH", qt.bindir) target:set("runenv", "QML2_IMPORT_PATH", qt.qmldir) target:set("runenv", "QML_IMPORT_TRACE", "1") + + if not target:is_plat("mingw") then + target:add("cxxflags", "/permissive-") + end elseif target:is_plat("msys", "cygwin") then raise("please run `xmake f -p mingw --mingw=/mingw64` to support Qt/Mingw64 on Msys!") end |
