[Mlir-commits] [mlir] 05b8dda - [PDLL] Attempt to fix shared libraries build

River Riddle llvmlistbot at llvm.org
Thu Mar 3 20:20:58 PST 2022


Author: River Riddle
Date: 2022-03-03T20:20:45-08:00
New Revision: 05b8dda1f210bf86c1f728aa39f5f7811b46a914

URL: https://github.com/llvm/llvm-project/commit/05b8dda1f210bf86c1f728aa39f5f7811b46a914
DIFF: https://github.com/llvm/llvm-project/commit/05b8dda1f210bf86c1f728aa39f5f7811b46a914.diff

LOG: [PDLL] Attempt to fix shared libraries build

PDLLParser now depends on TableGen, which disables LLVM_DYLIB

Added: 
    

Modified: 
    mlir/lib/Tools/PDLL/Parser/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Tools/PDLL/Parser/CMakeLists.txt b/mlir/lib/Tools/PDLL/Parser/CMakeLists.txt
index d553f925cb4cf..f705214eaca60 100644
--- a/mlir/lib/Tools/PDLL/Parser/CMakeLists.txt
+++ b/mlir/lib/Tools/PDLL/Parser/CMakeLists.txt
@@ -1,7 +1,10 @@
-add_mlir_library(MLIRPDLLParser
+
+llvm_add_library(MLIRPDLLParser STATIC
   Lexer.cpp
   Parser.cpp
   
+  DISABLE_LLVM_LINK_LLVM_DYLIB
+
   LINK_COMPONENTS
   Support
   TableGen


        


More information about the Mlir-commits mailing list