forked from OSchip/llvm-project
				
			[MLIR] Link MLIRMlirOptMain with the same libraries as mlir-opt
MLIRMlirOptMain seems to need the same libraries as mlir-opt. Differential Revision: https://reviews.llvm.org/D75783
This commit is contained in:
		
							parent
							
								
									d8f9416fdc
								
							
						
					
					
						commit
						accede537e
					
				| 
						 | 
				
			
			@ -2,24 +2,6 @@ set(LLVM_OPTIONAL_SOURCES
 | 
			
		|||
  null.cpp
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
set(LIB_LIBS
 | 
			
		||||
  MLIRAnalysis
 | 
			
		||||
  MLIRIR
 | 
			
		||||
  MLIRLLVMIR
 | 
			
		||||
  MLIROptLib
 | 
			
		||||
  MLIRParser
 | 
			
		||||
  MLIRPass
 | 
			
		||||
  MLIRTransforms
 | 
			
		||||
  MLIRSupport
 | 
			
		||||
)
 | 
			
		||||
add_llvm_library(MLIRMlirOptMain
 | 
			
		||||
  mlir-opt.cpp
 | 
			
		||||
)
 | 
			
		||||
target_link_libraries(MLIRMlirOptMain
 | 
			
		||||
  PUBLIC
 | 
			
		||||
  ${LIB_LIBS}
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
 | 
			
		||||
get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
 | 
			
		||||
set(LIBS
 | 
			
		||||
| 
						 | 
				
			
			@ -53,6 +35,14 @@ set(LIBS
 | 
			
		|||
  LLVMAsmParser
 | 
			
		||||
  )
 | 
			
		||||
 | 
			
		||||
add_llvm_library(MLIRMlirOptMain
 | 
			
		||||
  mlir-opt.cpp
 | 
			
		||||
)
 | 
			
		||||
target_link_libraries(MLIRMlirOptMain
 | 
			
		||||
  PUBLIC
 | 
			
		||||
  ${LIBS}
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
add_llvm_tool(mlir-opt
 | 
			
		||||
 mlir-opt.cpp
 | 
			
		||||
)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue