diff options
| author | ruki <[email protected]> | 2024-07-29 11:07:03 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-07-29 11:07:03 +0800 |
| commit | 58987a44d287590230fc43f74d71036ebaa23454 (patch) | |
| tree | a34186915ea88a2b2083ab9a6f99e8200f680131 | |
| parent | a06e2745bed779139111f3fad6cd4fd6d6f01b12 (diff) | |
| parent | 5fa1efa6e686c5a24e41eaa915db25f38aed5a31 (diff) | |
Merge pull request #5406 from chriku/patch-1
Fix missing braces ignoring sourcekind in batchcmds
| -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) |
