summaryrefslogtreecommitdiff
path: root/unittests/ExecutionEngine/MCJIT/CMakeLists.txt
blob: 3e9c5b631e454a46907ad7e724294796a43934ed (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
set(LLVM_LINK_COMPONENTS
  asmparser
  bitreader
  bitwriter
  mcjit
  jit
  nativecodegen
  )

set(MCJITTestsSources
  MCJITTest.cpp
  SectionMemoryManager.cpp
  )

if(MSVC)
  list(APPEND MCJITTestsSources MCJITTests.def)
endif()

add_llvm_unittest(MCJITTests
  ${MCJITTestsSources}
  )

if(MINGW OR CYGWIN)
  set_property(TARGET MCJITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols)
endif()