File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,11 @@ function _get_targetdeps_modules(target)
296296 fileconfig .undefines = table .join (fileconfig .undefines or {}, dep :get (" undefines" ) or {})
297297 fileconfig .includedirs = table .join (fileconfig .includedirs or {}, dep :get (" includedirs" ) or {})
298298 if not dep :is_phony () then
299- fileconfig .external = dep :fullname ()
299+ if target :namespace () == dep :namespace () then
300+ fileconfig .external = dep :name ()
301+ else
302+ fileconfig .external = dep :fullname ()
303+ end
300304 fileconfig .bmionly = not dep :is_moduleonly ()
301305 end
302306 if not modules [sourcefile ] then
@@ -358,6 +362,7 @@ function _patch_sourcebatch(target, sourcebatch)
358362 local strict = target :policy (" build.c++.modules.reuse.strict" ) or
359363 target :policy (" build.c++.modules.tryreuse.discriminate_on_defines" )
360364 local dep = target :dep (fileconfig .external )
365+ assert (dep , format (" dep target <%s> for <%s>" , fileconfig .external , target :fullname ()))
361366
362367 local can_reuse = nocheck or _are_flags_compatible (target , dep , sourcefile , {strict = strict })
363368 if can_reuse then
You can’t perform that action at this time.
0 commit comments