[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 14:07:55 -07:00
parent e8e7b2cb46
commit 8b3155829a
+1 -2
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}