diff options
| author | ruki <[email protected]> | 2025-04-23 23:49:28 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-04-23 23:49:28 +0800 |
| commit | 4333d588d626270677cf5de375437498a0fb68e4 (patch) | |
| tree | 351804c3b0fa1a4468951c3a030d81d0dd3daa78 | |
| parent | 4e3457ea9d17a5e3f7d10f9817ff9fa839c1dd3e (diff) | |
fix mapper path #6350
| -rw-r--r-- | xmake/rules/c++/modules/gcc/builder.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/gcc/builder.lua b/xmake/rules/c++/modules/gcc/builder.lua index f3c0ba471..94c35c852 100644 --- a/xmake/rules/c++/modules/gcc/builder.lua +++ b/xmake/rules/c++/modules/gcc/builder.lua @@ -135,7 +135,8 @@ end -- function _generate_modulemapper_file(target, module, cppfile) local maplines = _get_maplines(target, module) - local mapper_path = path.join(os.tmpdir(), target:fullname():replace(" ", "_"), name or cppfile:replace(" ", "_")) + local mapper_path = path.join(os.tmpdir(), (target:fullname():replace(" ", "_")), + name or (cppfile:replace("[%s:]", "_"))) -- @see https://github.com/xmake-io/xmake/issues/6350 local mapper_content = {} table.insert(mapper_content, "root " .. path.unix(os.projectdir())) for _, mapline in ipairs(maplines) do |
