From 0f072dca50a57d8cf8ec10557a48bd8abffd30dd Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 12 Nov 2025 23:02:15 +0800 Subject: fix file sourcekind in gcc #7015 --- xmake/modules/core/tools/gcc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index 6d5f59fac..4a920a233 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -901,7 +901,7 @@ function add_sourceflags(self, sourcefile, fileconfig, target, targetkind) -- add_files("*.c", {sourcekind = "cxx"}) -- local sourcekind = fileconfig.sourcekind - if sourcekind and sourcekind ~= language.sourcekind_of(sourcefile) then + if sourcekind then local maps = {cc = "-x c", cxx = "-x c++"} return maps[sourcekind] end -- cgit v1.3.1