Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
pato-melowntech committed Apr 21, 2024
1 parent 3095475 commit 4d30e40
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions source/slang/slang-emit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,9 @@ Result linkAndOptimizeIR(
break;
case CodeGenTarget::HostCPPSource:
case CodeGenTarget::CPPSource:
case CodeGenTarget::CPPHeader:
case CodeGenTarget::CUDASource:
break;
case CodeGenTarget::CPPHeader:
case CodeGenTarget::CUDAHeader:
generateTransitiveExternCpp(irModule, sink);
break;
Expand All @@ -364,8 +365,14 @@ Result linkAndOptimizeIR(
switch (target)
{
case CodeGenTarget::CPPSource:
case CodeGenTarget::CPPHeader:
case CodeGenTarget::HostCPPSource:
{
lowerComInterfaces(irModule, artifactDesc.style, sink);
generateDllImportFuncs(codeGenContext->getTargetProgram(), irModule, sink);
generateDllExportFuncs(irModule, sink);
break;
}
case CodeGenTarget::CPPHeader:
{
lowerComInterfaces(irModule, artifactDesc.style, sink);
generateDllImportFuncs(codeGenContext->getTargetProgram(), irModule, sink);
Expand Down

0 comments on commit 4d30e40

Please sign in to comment.