Skip to content

Commit

Permalink
Merge pull request #5406 from chriku/patch-1
Browse files Browse the repository at this point in the history
Fix missing braces ignoring sourcekind in batchcmds
  • Loading branch information
waruqi authored Jul 29, 2024
2 parents a06e274 + 5fa1efa commit 58987a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/modules/private/utils/batchcmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ function batchcmds:compile(sourcefiles, objectfile, opt)

-- load compiler and get compilation command
local sourcekind = opt.sourcekind
if not sourcekind and type(sourcefiles) == "string" or path.instance_of(sourcefiles) then
if not sourcekind and (type(sourcefiles) == "string" or path.instance_of(sourcefiles)) then
sourcekind = language.sourcekind_of(tostring(sourcefiles))
end
local compiler_inst = compiler.load(sourcekind, opt)
Expand Down

0 comments on commit 58987a4

Please sign in to comment.