diff options
| author | ruki <[email protected]> | 2022-08-06 00:36:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-08-06 00:36:52 +0800 |
| commit | 442ed69e3344e762a61698105154b9134d1d4496 (patch) | |
| tree | 0e04898b55c09708bfbdf246b365f2e90e45040d /xmake/rules/c++/modules/modules_support/clang.lua | |
| parent | 765b7041868da4a3aa08b97b8a1d73c48dbd9dbd (diff) | |
support for compile_commands
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/clang.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/clang.lua | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang.lua b/xmake/rules/c++/modules/modules_support/clang.lua index 4cefed14d..19b42b135 100644 --- a/xmake/rules/c++/modules/modules_support/clang.lua +++ b/xmake/rules/c++/modules/modules_support/clang.lua @@ -249,13 +249,11 @@ function build_modules(target, batchcmds, objectfiles, modules, opt) end local bmifile = provide.bmi - local args = { emitmoduleinterfaceflag, "-c", "-x", "c++-module", "--precompile", provide.sourcefile, "-o", bmifile } batchcmds:show_progress(opt.progress, "${color.build.object}generating.cxx.module.bmi %s", name) batchcmds:mkdir(path.directory(objectfile)) batchcmds:vrunv(compinst:program(), table.join(compinst:compflags({target = target}), common_args, args)) batchcmds:vrunv(compinst:program(), table.join(compinst:compflags({target = target}), common_args, {bmifile}, {"-c", "-o", objectfile})) - batchcmds:add_depfiles(provide.sourcefile) local bmiflags = modulefileflag .. bmifile |
