summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-13 16:25:23 +0800
committerGitHub <[email protected]>2024-07-13 16:25:23 +0800
commitf717e96b355350712b4eb726fd27cfb698fee4a6 (patch)
tree888a4aa7fac49436fe96faf77e0802f460606a0c
parentf621130aacffb10b71d5a5a5f6891ea1efcd7e5f (diff)
parent93dd5771af3e085bdfeb93b767b04b7b480729f7 (diff)
Merge pull request #5339 from Arthapz/fix-gnuxx-flag-for-modules
fix c++ language detection for modules when gnuxxXY or gnu++XY is used
-rw-r--r--xmake/rules/c++/modules/modules_support/compiler_support.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/compiler_support.lua b/xmake/rules/c++/modules/modules_support/compiler_support.lua
index d53e92974..72e7b93fd 100644
--- a/xmake/rules/c++/modules/modules_support/compiler_support.lua
+++ b/xmake/rules/c++/modules/modules_support/compiler_support.lua
@@ -51,7 +51,7 @@ function load(target)
local languages = target:get("languages")
local cxxlang = false
for _, lang in ipairs(languages) do
- if lang:find("cxx", 1, true) or lang:find("c++", 1, true) then
+ if lang:find("cxx", 1, true) or lang:find("c++", 1, true) or lang:find("gnuxx", 1, true) or lang:find("gnu++", 1, true) then
cxxlang = true
break
end