diff options
| -rw-r--r-- | xmake/rules/qt/load.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/qt/load.lua b/xmake/rules/qt/load.lua index 492f0fe42..9fc204174 100644 --- a/xmake/rules/qt/load.lua +++ b/xmake/rules/qt/load.lua @@ -224,7 +224,7 @@ function main(target, opt) if qt_sdkver:ge("6.0") then -- @see https://github.com/xmake-io/xmake/issues/2071 - if target:is_plat("windows") then + if target:is_plat("windows") and target:has_tool("cxx", "clang_cl", "cl") then target:add("cxxflags", "/Zc:__cplusplus") target:add("cxxflags", "/permissive-") end |
