[clang] [Clang] diagnosing missing Vulkan environment when using SPIR-V triple (PR #190840)
Tony Guillot via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 15 06:28:08 PDT 2026
================
@@ -0,0 +1,4 @@
+// RUN: not %clang -target spirv %s 2>&1 | FileCheck %s
+// CHECK: error: SPIR-V target '%0' requires a Vulkan environment (e.g. '-target spirv64-unknown-vulkan1.3')
----------------
to268 wrote:
> I am not sure what you mean by this. Is that not what is already happening?
Yes but the `%0` is only used in the tablegen file that acts as a "format string" to match streamed arguments to the diagnostic engine. You need to put the actual value as is it showed to the end user in the test case.
https://github.com/llvm/llvm-project/pull/190840
More information about the cfe-commits
mailing list