diff options
| author | Nathan V. Morrical <natemorrical@gmail.com> | 2021-05-26 07:15:08 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-26 09:15:08 -0400 |
| commit | 969943f4b751d3cad8ac548f9cf0f65406935bad (patch) | |
| tree | c0b6fbb7f3ab0de9f8acd6416a758795cab366a1 /source/slang/slang-compiler.cpp | |
| parent | 2a2f50fd63281e0eba5da16e955d0afc7634e9cd (diff) | |
small tweak to allow for dumping out intermediate source for cuda targets (#1855)
Co-authored-by: T. Foley <tfoleyNV@users.noreply.github.com>
Co-authored-by: Yong He <yonghe@outlook.com>
Co-authored-by: jsmall-nvidia <jsmall@nvidia.com>
Diffstat (limited to 'source/slang/slang-compiler.cpp')
| -rwxr-xr-x | source/slang/slang-compiler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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: |
