[AArch64][SME2] Add multi-vector saturating doubling multiply high intrinsics
[llvm-project.git] / lld / test / CMakeLists.txt
blobd290533ada5ad714dcdabb21f8a0291097a111ef
1 llvm_canonicalize_cmake_booleans(
2   ENABLE_BACKTRACES
3   LLVM_ENABLE_ZLIB
4   LLVM_ENABLE_ZSTD
5   LLVM_ENABLE_LIBXML2
6   LLD_DEFAULT_LD_LLD_IS_MINGW
7   LLVM_HAVE_LIBXAR
8   LLVM_BUILD_EXAMPLES
9   LLVM_ENABLE_PLUGINS
10   LLVM_BYE_LINK_INTO_TOOLS
11   )
13 configure_lit_site_cfg(
14   ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
15   ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
16   MAIN_CONFIG
17   ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
18   )
20 set(LLD_TEST_DEPS lld)
21 if (NOT LLD_BUILT_STANDALONE)
22   list(APPEND LLD_TEST_DEPS
23     FileCheck
24     count
25     dsymutil
26     llc
27     llvm-ar
28     llvm-as
29     llvm-bcanalyzer
30     llvm-config
31     llvm-cvtres
32     llvm-dis
33     llvm-dwarfdump
34     llvm-lib
35     llvm-lipo
36     llvm-mc
37     llvm-nm
38     llvm-objcopy
39     llvm-objdump
40     llvm-otool
41     llvm-pdbutil
42     llvm-profdata
43     llvm-readelf
44     llvm-readobj
45     llvm-strip
46     llvm-symbolizer
47     not
48     obj2yaml
49     opt
50     split-file
51     yaml2obj
52     )
53     if (NOT WIN32 AND LLVM_BUILD_EXAMPLES)
54       list(APPEND LLD_TEST_DEPS
55         Bye
56         )
57     endif()
58 endif()
60 add_lit_testsuite(check-lld "Running lld test suite"
61   ${CMAKE_CURRENT_BINARY_DIR}
62   DEPENDS ${LLD_TEST_DEPS}
63   )
65 add_custom_target(lld-test-depends DEPENDS ${LLD_TEST_DEPS})
66 set_target_properties(lld-test-depends PROPERTIES FOLDER "lld tests")
68 add_lit_testsuites(LLD ${CMAKE_CURRENT_SOURCE_DIR}
69   DEPENDS ${LLD_TEST_DEPS}
70   )
72 set_target_properties(check-lld PROPERTIES FOLDER "lld tests")
74 # Add a legacy target spelling: lld-test
75 add_custom_target(lld-test)
76 add_dependencies(lld-test check-lld)
77 set_target_properties(lld-test PROPERTIES FOLDER "lld tests")