1 set(LLVM_LINK_COMPONENTS
5 AllTargetsDisassemblers
15 # We should only have llvm-c-test use libLLVM if libLLVM is built with the
16 # default list of components. Using libLLVM with custom components can result in
19 set (USE_LLVM_DYLIB FALSE)
22 set (USE_LLVM_DYLIB TRUE)
23 if (DEFINED LLVM_DYLIB_COMPONENTS)
24 foreach(c in ${LLVM_LINK_COMPONENTS})
25 list(FIND LLVM_DYLIB_COMPONENTS ${c} C_IDX)
27 set(USE_LLVM_DYLIB FALSE)
35 set(LLVM_LINK_COMPONENTS)
38 if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
39 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wstrict-prototypes")
42 add_llvm_tool(llvm-c-test
59 target_link_libraries(llvm-c-test LLVM)