Home | History | Annotate | Download | only in Dynamic
      1 set(LLVM_LINK_COMPONENTS support)
      2 
      3 # The registry source file ends up generating a lot of sections for each
      4 # matcher. Each matcher appears to get a vtable and several methods. Each
      5 # method needs .text, .pdata, .xdata, and .debug sections, adding to the
      6 # section multiplier. By default MSVC has a 2^16 limit on the number of
      7 # sections in an object file, and this needs more than that.
      8 if (MSVC)
      9   set_source_files_properties(Registry.cpp PROPERTIES COMPILE_FLAGS /bigobj)
     10 endif()
     11 
     12 add_clang_library(clangDynamicASTMatchers
     13   Diagnostics.cpp
     14   VariantValue.cpp
     15   Parser.cpp
     16   Registry.cpp
     17 
     18   LINK_LIBS
     19   clangAST
     20   clangASTMatchers
     21   clangBasic
     22   )
     23