From 3d1d692f939d2e23704a90a9cd009194905de5dc Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 19 Apr 2022 12:09:22 -0700 Subject: Make translation units in the same CompileReq visible to `import`. (#2184) * Make translation unitts in the same CompileReq visible to `import`. * Fix code review comments. Co-authored-by: Yong He Co-authored-by: Theresa Foley <10618364+tangent-vector@users.noreply.github.com> --- source/slang/slang-check-decl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/slang/slang-check-decl.cpp') diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp index dbbf7e973..8db157a37 100644 --- a/source/slang/slang-check-decl.cpp +++ b/source/slang/slang-check-decl.cpp @@ -5033,7 +5033,8 @@ namespace Slang getLinkage(), name, decl->moduleNameAndLoc.loc, - getSink()); + getSink(), + m_shared->m_environmentModules); // If we didn't find a matching module, then bail out if (!importedModule) -- cgit v1.2.3