diff options
| author | Arthur LAURENT <[email protected]> | 2024-07-12 18:04:11 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2024-07-12 18:04:11 +0200 |
| commit | 93dd5771af3e085bdfeb93b767b04b7b480729f7 (patch) | |
| tree | 2655083c835d332c89eb6e98816b54f85fa33928 | |
| parent | 008d6a92e171d9ef1d8a62fca1e4900ed5faa48f (diff) | |
fix c++ language detection for modules when gnuxxXY or gnu++XY is used
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/compiler_support.lua | 2 |
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 |
