[Mlir-commits] [mlir] 8b31558 - [MLIR] Fix build when NVPTX is not enabled

Stephen Neuendorffer llvmlistbot at llvm.org
Thu May 28 14:08:16 PDT 2020


Author: Stephen Neuendorffer
Date: 2020-05-28T14:07:55-07:00
New Revision: 8b3155829a99fecc9e62f84d95668d0e85a0dd62

URL: https://github.com/llvm/llvm-project/commit/8b3155829a99fecc9e62f84d95668d0e85a0dd62
DIFF: https://github.com/llvm/llvm-project/commit/8b3155829a99fecc9e62f84d95668d0e85a0dd62.diff

LOG: [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)

Added: 
    

Modified: 
    mlir/lib/Conversion/GPUCommon/CMakeLists.txt

Removed: 
    


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


        


More information about the Mlir-commits mailing list