From 8b3155829a99fecc9e62f84d95668d0e85a0dd62 Mon Sep 17 00:00:00 2001 From: Stephen Neuendorffer Date: Thu, 28 May 2020 13:50:32 -0700 Subject: [PATCH] [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) --- mlir/lib/Conversion/GPUCommon/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mlir/lib/Conversion/GPUCommon/CMakeLists.txt b/mlir/lib/Conversion/GPUCommon/CMakeLists.txt index 91c2816..2b85c23 100644 --- a/mlir/lib/Conversion/GPUCommon/CMakeLists.txt +++ b/mlir/lib/Conversion/GPUCommon/CMakeLists.txt @@ -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} -- 2.7.4