[clang] [Clang] diagnosing missing Vulkan environment when using SPIR-V triple (PR #190840)

via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 13 08:49:55 PDT 2026


================
@@ -112,6 +112,18 @@ void CompilerInstance::setTarget(TargetInfo *Value) { Target = Value; }
 void CompilerInstance::setAuxTarget(TargetInfo *Value) { AuxTarget = Value; }
 
 bool CompilerInstance::createTarget() {
+
+  // SPIR-V targeting requires a fully specified Vulkan environment.
+  // Validate here before CreateTargetInfo() to emit a proper diagnostic
+  llvm::Triple Triple(getInvocation().getTargetOpts().Triple);
----------------
PrabbyDD wrote:

Ok I think I should have addressed all the changes. If there is anything else let me know. Thanks for all the help! 1st PR almost done wooo

https://github.com/llvm/llvm-project/pull/190840


More information about the cfe-commits mailing list