aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/UnitTests/CMakeLists.txt
blob: 5b00af9dac59e194a04624320e4771ab2e924d6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
set(DIRS)
set(PARALLEL_DIRS)

set(DIRS SetjmpLongjmp)
set(DIRS )
list(APPEND DIRS Vector)
list(APPEND DIRS Vectorizer)
list(APPEND DIRS SignlessTypes Threads C++11)
if("${TARGET_OS}" STREQUAL "Darwin")
  list(APPEND DIRS ObjC ObjC++)
endif()
if("${TARGET_OS}" STREQUAL "Darwin")
  set(PROGRAMS_TO_SKIP 2007-04-25-weak)
  if("${ARCH}" STREQUAL "PowerPC")
    list(APPEND PROGRAMS_TO_SKIP AtomicOps)
  endif()
endif()
llvm_filter(TMP1 ${ARCH} x86_64 x86_64h)
if("" STREQUAL "${TMP1}")
  list(APPEND PROGRAMS_TO_SKIP ms_struct-bitfield-init-1 ms_struct-bitfield-init ms_struct-bitfield ms_struct_pack_layout-1 ms_struct_pack_layout ms_struct-bitfield-1)
endif()
if("${ARCH}" STREQUAL "AArch64")
  list(APPEND PROGRAMS_TO_SKIP blockstret)
endif()
if("${ARCH}" STREQUAL "Mips")
  list(APPEND DIRS Mips)
  string(FIND "${MIPSARCH}" "mips64" TMP2)
  if("" STREQUAL "${TMP2}")
    list(APPEND PROGRAMS_TO_SKIP AtomicOps)
  endif()
endif()
if("${ARCH}" STREQUAL "XCore")
  list(APPEND PROGRAMS_TO_SKIP AtomicOps)
  list(APPEND PROGRAMS_TO_SKIP initp1)
  set(XCORE_TARGET_NEEDS_MEMORY 1)
endif()
list(APPEND LDFLAGS -lstdc++)
llvm_singlesource()

llvm_add_subdirectories(${DIRS} ${PARALLEL_DIRS})