import("//third-party/unittest/unittest.gni")
unittest("OrcJITTests") {
deps = [
"//llvm/lib/ExecutionEngine",
"//llvm/lib/ExecutionEngine/Orc",
"//llvm/lib/ExecutionEngine/Orc/Debugging",
"//llvm/lib/ExecutionEngine/Orc/Shared",
"//llvm/lib/ExecutionEngine/RuntimeDyld",
"//llvm/lib/IR",
"//llvm/lib/Object",
"//llvm/lib/Support",
"//llvm/lib/Target:NativeTarget",
"//llvm/lib/TargetParser",
"//llvm/lib/Testing/Support",
]
sources = [
"CoreAPIsTest.cpp",
"EPCGenericJITLinkMemoryManagerTest.cpp",
"EPCGenericMemoryAccessTest.cpp",
"ExecutionSessionWrapperFunctionCallsTest.cpp",
"ExecutorAddressTest.cpp",
"IndirectionUtilsTest.cpp",
"JITTargetMachineBuilderTest.cpp",
"LazyCallThroughAndReexportsTest.cpp",
"LookupAndRecordAddrsTest.cpp",
"MachOPlatformTest.cpp",
"MapperJITLinkMemoryManagerTest.cpp",
"MemoryFlagsTest.cpp",
"MemoryMapperTest.cpp",
"ObjectFormatsTest.cpp",
"ObjectLinkingLayerTest.cpp",
"OrcCAPITest.cpp",
"OrcTestCommon.cpp",
"RTDyldObjectLinkingLayerTest.cpp",
"ResourceTrackerTest.cpp",
"SharedMemoryMapperTest.cpp",
"SimpleExecutorMemoryManagerTest.cpp",
"SimplePackedSerializationTest.cpp",
"SymbolStringPoolTest.cpp",
"TaskDispatchTest.cpp",
"ThreadSafeModuleTest.cpp",
"WrapperFunctionUtilsTest.cpp",
]
if (host_os != "mac" && host_os != "win") {
# Corresponds to export_executable_symbols() in cmake.
ldflags = [ "-rdynamic" ]
}
}