From 1a88488c309eab24b8f931c182353b271f22b44d Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Thu, 24 Jul 2025 19:26:02 -0700 Subject: Fix metallib-asm target parsing by adding missing comma (#7902) * Fix metallib-asm target parsing by adding missing comma The metallib-asm target was not being recognized from command line because of a syntax error in the target string definition in slang-type-text-util.cpp. A missing comma after the first "metallib-asm" string caused C++ string literal concatenation to create a malformed string. Resolves #7774 Co-authored-by: Jay Kwak * format code (#7910) Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> * regenerate command line reference (#7911) Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> --------- Co-authored-by: Claude Code Co-authored-by: Jay Kwak Co-authored-by: slangbot Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> --- source/core/slang-type-text-util.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source') diff --git a/source/core/slang-type-text-util.cpp b/source/core/slang-type-text-util.cpp index 39b68db45..d8435c503 100644 --- a/source/core/slang-type-text-util.cpp +++ b/source/core/slang-type-text-util.cpp @@ -77,10 +77,7 @@ static const TypeTextUtil::CompileTargetInfo s_compileTargetInfos[] = { {SLANG_HOST_HOST_CALLABLE, "", "host-host-callable", "Host callable for host execution"}, {SLANG_METAL, "metal", "metal", "Metal shader source"}, {SLANG_METAL_LIB, "metallib", "metallib", "Metal Library Bytecode"}, - {SLANG_METAL_LIB_ASM, - "metallib-asm" - "metallib-asm", - "Metal Library Bytecode assembly"}, + {SLANG_METAL_LIB_ASM, "metallib-asm", "metallib-asm", "Metal Library Bytecode assembly"}, {SLANG_WGSL, "wgsl", "wgsl", "WebGPU shading language source"}, {SLANG_WGSL_SPIRV_ASM, "wgsl-spirv-asm", -- cgit v1.2.3