[bazel] Gate NVPTXCodeGen behind llvm_targets (#208041)

Fixes another case of issue #63135
This commit is contained in:
Michael Platings 2026-07-09 10:48:39 +01:00 committed by GitHub
parent 6c2f267a20
commit 4452323fef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5855,8 +5855,7 @@ cc_library(
"//llvm:Target",
] + if_cuda_available([
":NVVMToLLVMIRTranslation",
"//llvm:NVPTXCodeGen",
]),
] + (["//llvm:NVPTXCodeGen"] if "NVPTX" in llvm_targets else [])),
)
cc_library(