diff options
| author | Arthur LAURENT <[email protected]> | 2024-01-31 14:14:08 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2024-01-31 14:14:08 +0100 |
| commit | e339cb5978255aaf2f67190221530ee1587c0be8 (patch) | |
| tree | ac9c62237e6eebdc7fcd2d5c22da377bf15ddc78 /xmake/rules/c++/modules | |
| parent | b9b078d766e5824a040b085da80a6cc58a6edda5 (diff) | |
fix inconsistent print format for gcc module mapper
Diffstat (limited to 'xmake/rules/c++/modules')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/gcc/builder.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/c++/modules/modules_support/gcc/builder.lua b/xmake/rules/c++/modules/modules_support/gcc/builder.lua index 73a2b0e2e..8b62069b9 100644 --- a/xmake/rules/c++/modules/modules_support/gcc/builder.lua +++ b/xmake/rules/c++/modules/modules_support/gcc/builder.lua @@ -345,7 +345,7 @@ function make_headerunit_build_job(target, job_name, batchjobs, headerunit, bmif progress.show((index * 100) / total, "${color.build.target}<%s> ${clear}${color.build.object}compiling.headerunit.$(mode) %s", target:name(), headerunit.name) if option.get("diagnosis") then - print("mapper file --------\n%s--------", io.readfile(headerunit_mapper)) + print("mapper file:\n%s", io.readfile(headerunit_mapper)) end _compile(target, _make_headerunitflags(target, headerunit, headerunit_mapper, opt), path.translate(path.filename(headerunit.name)), bmifile) os.tryrm(headerunit_mapper) @@ -372,7 +372,7 @@ function make_headerunit_build_cmds(target, batchcmds, headerunit, bmifile, outp local name = headerunit.unique and headerunit.name or headerunit.path batchcmds:show_progress(opt.progress, "${color.build.target}<%s> ${clear}${color.build.object}compiling.headerunit.$(mode) %s", target:name(), name) if option.get("diagnosis") then - batchcmds:print("mapper file: %s", io.readfile(headerunit_mapper)) + batchcmds:print("mapper file:\n%s", io.readfile(headerunit_mapper)) end _batchcmds_compile(batchcmds, target, _make_headerunitflags(target, headerunit, headerunit_mapper, {batchcmds = true, bmifile = bmifile})) end |
