mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 10:54:49 +01:00
[MLIR] Fix build when NVPTX is not enabled
In this case, neither target is selected, but there is still a dependence on the MC library (through the TargetOptions.h include)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
if (MLIR_CUDA_CONVERSIONS_ENABLED)
|
||||
set(NVPTX_LIBS
|
||||
MC
|
||||
NVPTXCodeGen
|
||||
NVPTXDesc
|
||||
NVPTXInfo
|
||||
@@ -9,7 +8,6 @@ endif()
|
||||
|
||||
if (MLIR_ROCM_CONVERSIONS_ENABLED)
|
||||
set(AMDGPU_LIBS
|
||||
MC
|
||||
AMDGPUCodeGen
|
||||
AMDGPUDesc
|
||||
AMDGPUInfo
|
||||
@@ -26,6 +24,7 @@ add_mlir_conversion_library(MLIRGPUtoGPURuntimeTransforms
|
||||
|
||||
LINK_COMPONENTS
|
||||
Core
|
||||
MC
|
||||
${AMDGPU_LIBS}
|
||||
${NVPTX_LIBS}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user