summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/builder.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2024-01-31 13:02:11 +0100
committerArthur LAURENT <[email protected]>2024-01-31 13:45:43 +0100
commit89f151ab335ad2aa1e5d1cc900f1e3837caa6437 (patch)
tree51400158d69a54fafac973d4a7b8ca40ff540265 /xmake/rules/c++/modules/modules_support/builder.lua
parentf3ec9cc0f7cf6d0b48dce8a69c5f6103b9dd6df3 (diff)
add a test for aliased headerunits
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/builder.lua')
-rw-r--r--xmake/rules/c++/modules/modules_support/builder.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/builder.lua b/xmake/rules/c++/modules/modules_support/builder.lua
index 5c2ec113f..db986b4ff 100644
--- a/xmake/rules/c++/modules/modules_support/builder.lua
+++ b/xmake/rules/c++/modules/modules_support/builder.lua
@@ -361,7 +361,7 @@ function add_headerunit_to_target_mapper(target, headerunit, bmifile)
local key = hash.uuid(path.normalize(headerunit.path))
local deduplicated = _is_duplicated_headerunit(target, key)
if deduplicated then
- mapper[headerunit.name] = {name = headerunit.name, key = key, aliasof = deduplicated.name}
+ mapper[headerunit.name] = {name = headerunit.name, key = key, aliasof = deduplicated.name, headerunit = headerunit}
else
mapper[headerunit.name] = {name = headerunit.name, key = key, headerunit = headerunit, bmi = bmifile}
end