diff options
| author | ruki <[email protected]> | 2022-08-29 22:57:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-08-29 22:57:06 +0800 |
| commit | 70fa2aa7e0fe6fd3aad44fabc8162f013a8cfa70 (patch) | |
| tree | 1e60b8502f6f6f7653f7dce2c5830dfc70311761 /xmake/rules/c++/modules/modules_support/msvc.lua | |
| parent | 27baca74306f29e6ecb71975236437e804a9b697 (diff) | |
improve modules for clang
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/msvc.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/msvc.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua index 4439a578e..7c17de0b7 100644 --- a/xmake/rules/c++/modules/modules_support/msvc.lua +++ b/xmake/rules/c++/modules/modules_support/msvc.lua @@ -45,7 +45,8 @@ function _add_module_to_mapper(target, argument, namekey, path, objectfile, bmif end function _mapper_cachekey(target) - return target:name() .. "_modulemap" + local mode = config.mode() + return target:name() .. "_modulemap_" .. (mode or "") end -- flush mapper file cache |
