From 59903ef7e4ddd8885f71567bf0fc85527a88fffc Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 3 May 2024 18:02:31 -0700 Subject: Add host shared library target. (#4098) * Add host shared library target. * Attempt fix. * Fix warnings. * try fix. * Fix test. * Fix. --- source/slang/slang.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/slang/slang.cpp') diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index 9b612b340..45a6933de 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -246,6 +246,7 @@ void Session::_initCodeGenTransitionMap() // is available. We prefer LLVM if that's available. If it's not we can use generic C/C++ compiler map.addTransition(source, CodeGenTarget::ShaderSharedLibrary, PassThroughMode::GenericCCpp); + map.addTransition(source, CodeGenTarget::HostSharedLibrary, PassThroughMode::GenericCCpp); map.addTransition(source, CodeGenTarget::HostExecutable, PassThroughMode::GenericCCpp); map.addTransition(source, CodeGenTarget::ObjectCode, PassThroughMode::GenericCCpp); } @@ -1709,6 +1710,7 @@ CapabilitySet TargetRequest::getTargetCaps() case CodeGenTarget::PyTorchCppBinding: case CodeGenTarget::HostExecutable: case CodeGenTarget::ShaderSharedLibrary: + case CodeGenTarget::HostSharedLibrary: case CodeGenTarget::HostHostCallable: case CodeGenTarget::ShaderHostCallable: atoms.add(CapabilityName::cpp); -- cgit v1.2.3