From 74852ceb6b3bcc018042aba3e30933b7b6fc09ef Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 12 Feb 2025 14:58:00 -0800 Subject: Allow LHS of `where` to be any type. (#6333) * Allow LHS of `where` to be any type. * Register free-form extensions when loading precompiled module. * Fix test. * Fix. * Fix `as`. * try fix precompiled module test. --- tools/gfx-unit-test/precompiled-module-cache.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools') diff --git a/tools/gfx-unit-test/precompiled-module-cache.cpp b/tools/gfx-unit-test/precompiled-module-cache.cpp index 8c22a7c84..778c68a89 100644 --- a/tools/gfx-unit-test/precompiled-module-cache.cpp +++ b/tools/gfx-unit-test/precompiled-module-cache.cpp @@ -7,6 +7,7 @@ #include "slang-gfx.h" #include "unit-test/slang-unit-test.h" +#include using namespace gfx; namespace gfx_test @@ -15,6 +16,9 @@ namespace gfx_test Slang::ComPtr createSession(gfx::IDevice* device, ISlangFileSystemExt* fileSys) { + static std::mutex m; + std::lock_guard lock(m); + Slang::ComPtr slangSession; device->getSlangSession(slangSession.writeRef()); slang::SessionDesc sessionDesc = {}; -- cgit v1.2.3