From 5fa1efa6e686c5a24e41eaa915db25f38aed5a31 Mon Sep 17 00:00:00 2001 From: Christian Kurz Date: Mon, 29 Jul 2024 02:27:27 +0200 Subject: Fix missing braces ignoring sourcekind in batchcmds --- xmake/modules/private/utils/batchcmds.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/modules/private/utils/batchcmds.lua') diff --git a/xmake/modules/private/utils/batchcmds.lua b/xmake/modules/private/utils/batchcmds.lua index 892e812a9..c8e0c51a8 100644 --- a/xmake/modules/private/utils/batchcmds.lua +++ b/xmake/modules/private/utils/batchcmds.lua @@ -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) -- cgit v1.3.1