From: Stephen Neuendorffer Date: Thu, 28 May 2020 20:50:32 +0000 (-0700) Subject: [MLIR] Fix build when NVPTX is not enabled X-Git-Tag: 2020.06-alpha~33^2~350 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b3155829a99fecc9e62f84d95668d0e85a0dd62;p=platform%2Fupstream%2Fllvm.git [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) --- diff --git a/mlir/lib/Conversion/GPUCommon/CMakeLists.txt b/mlir/lib/Conversion/GPUCommon/CMakeLists.txt index 91c281614214..2b85c237731b 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}