[cmake] rework LLVM_LINK_LLVM_DYLIB option handling
[oota-llvm.git] / cmake / modules / TableGen.cmake
index 98646bc16df44c8ed5100383e655829782bbcf70..452a728db4feb9c5b4da5006a47fbdd1c73b69d6 100644 (file)
@@ -79,13 +79,7 @@ macro(add_tablegen target project)
     set(LLVM_ENABLE_OBJLIB ON)
   endif()
 
-  add_llvm_utility(
-    ${target} ${ARGN}
-    # libLLVM does not include the TableGen
-    # components, so we cannot link any tblgen
-    # utilities against it.
-    DISABLE_LLVM_LINK_LLVM_DYLIB)
-
+  add_llvm_utility(${target} ${ARGN})
   set(LLVM_LINK_COMPONENTS ${${target}_OLD_LLVM_LINK_COMPONENTS})
 
   set(${project}_TABLEGEN "${target}" CACHE