[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:
Stephen Neuendorffer 2020-05-28 13:50:32 -07:00
parent e8e7b2cb46
commit 8b3155829a
1 changed files with 1 additions and 2 deletions

View File

@ -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}