diff options
| author | ruki <[email protected]> | 2023-09-15 11:54:05 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-09-15 11:54:05 +0800 |
| commit | 3f10a225581a76e8219c779518697507c9ab38de (patch) | |
| tree | 31df5b2481c4f66a5e5e906179cdd1c75b9391c5 | |
| parent | 2b207492f61df550cf726ad059052b2d8062dbc8 (diff) | |
Update gcc.lua
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/gcc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/gcc.lua b/xmake/rules/c++/modules/modules_support/gcc.lua index f08eb4199..762810f08 100644 --- a/xmake/rules/c++/modules/modules_support/gcc.lua +++ b/xmake/rules/c++/modules/modules_support/gcc.lua @@ -113,7 +113,7 @@ end -- @note we need to use batchcmds:compilev to translate paths in compflags for generator, e.g. -Ixx function _batchcmds_compile(batchcmds, target, flags, sourcefile) local compinst = target:compiler("cxx") - local compflags = compinst:compflags({sourcefile = sourcefile}, {target = target}) + local compflags = compinst:compflags({sourcefile = sourcefile, target = target}) batchcmds:compilev(table.join(compflags or {}, flags), {compiler = compinst, sourcekind = "cxx"}) end |
