diff options
| author | Christian Kurz <[email protected]> | 2024-07-29 02:27:27 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-07-29 02:27:27 +0200 |
| commit | 5fa1efa6e686c5a24e41eaa915db25f38aed5a31 (patch) | |
| tree | a34186915ea88a2b2083ab9a6f99e8200f680131 /xmake/modules/private/utils/batchcmds.lua | |
| parent | a06e2745bed779139111f3fad6cd4fd6d6f01b12 (diff) | |
Fix missing braces ignoring sourcekind in batchcmds
Diffstat (limited to 'xmake/modules/private/utils/batchcmds.lua')
| -rw-r--r-- | xmake/modules/private/utils/batchcmds.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
