[clang] [Clang] diagnosing missing Vulkan environment when using SPIR-V triple (PR #190840)
Tony Guillot via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 11 11:47:48 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.
----------------
to268 wrote:
This code block should at least be moved after `setTarget(TargetInfo::CreateTargetInfo(getDiagnostics(),`.
https://github.com/llvm/llvm-project/pull/190840
More information about the cfe-commits
mailing list