[clang] [Clang] diagnosing missing Vulkan environment when using SPIR-V triple (PR #190840)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 15 06:18:45 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')
----------------
PrabbyDD wrote:
I am not sure what you mean by this. Is that not what is already happening? I am taking the value of `getTriple.str() `and plugging it into the error via %0. Do you mean to just remove the %0 and the ` << getTriple.str()`?
https://github.com/llvm/llvm-project/pull/190840
More information about the cfe-commits
mailing list