From 969943f4b751d3cad8ac548f9cf0f65406935bad Mon Sep 17 00:00:00 2001 From: "Nathan V. Morrical" Date: Wed, 26 May 2021 07:15:08 -0600 Subject: small tweak to allow for dumping out intermediate source for cuda targets (#1855) Co-authored-by: T. Foley Co-authored-by: Yong He Co-authored-by: jsmall-nvidia --- source/slang/slang-compiler.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source') diff --git a/source/slang/slang-compiler.cpp b/source/slang/slang-compiler.cpp index 9a2a69248..2428bb8fb 100755 --- a/source/slang/slang-compiler.cpp +++ b/source/slang/slang-compiler.cpp @@ -2254,6 +2254,7 @@ namespace Slang case CodeGenTarget::DXBytecodeAssembly: return ".dxbc.asm"; case CodeGenTarget::DXILAssembly: return ".dxil.asm"; case CodeGenTarget::CSource: return ".c"; + case CodeGenTarget::CUDASource: return ".cu"; case CodeGenTarget::CPPSource: return ".cpp"; // What these should be called is target specific, but just use these exts to make clear for now // for now @@ -2277,6 +2278,7 @@ namespace Slang switch (target) { case CodeGenTarget::CPPSource: + case CodeGenTarget::CUDASource: case CodeGenTarget::CSource: case CodeGenTarget::DXILAssembly: case CodeGenTarget::DXBytecodeAssembly: -- cgit v1.2.3