Skip to content

Commit 888f5c3

Browse files
committed
improve sourceflags for cl #6898
1 parent c806f76 commit 888f5c3

File tree

1 file changed

+1
-1
lines changed
  • xmake/modules/core/tools

1 file changed

+1
-1
lines changed

xmake/modules/core/tools/cl.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ function add_sourceflags(self, sourcefile, fileconfig, target, targetkind)
447447
-- add_files("*.c", {sourcekind = "cxx"})
448448
--
449449
local sourcekind = fileconfig.sourcekind
450-
if sourcekind and sourcekind ~= language.sourcekind_of(sourcefile) then
450+
if sourcekind then
451451
local maps = {cc = "-TC", cxx = "-TP"}
452452
return maps[sourcekind]
453453
end

0 commit comments

Comments
 (0)