forked from OSchip/llvm-project
parent
266f6347db
commit
b6f4a7a107
|
@ -84,6 +84,7 @@ target(libclang_target_type, "libclang") {
|
||||||
"CXTranslationUnit.h",
|
"CXTranslationUnit.h",
|
||||||
"CXType.cpp",
|
"CXType.cpp",
|
||||||
"CXType.h",
|
"CXType.h",
|
||||||
|
"FatalErrorHandler.cpp",
|
||||||
"Index_Internal.h",
|
"Index_Internal.h",
|
||||||
"Indexing.cpp",
|
"Indexing.cpp",
|
||||||
]
|
]
|
||||||
|
|
|
@ -31,7 +31,10 @@ group("unittests") {
|
||||||
# to failures, mostly in libclang.VirtualFileOverlay_*.
|
# to failures, mostly in libclang.VirtualFileOverlay_*.
|
||||||
# FIXME: Also, the executable can't find libclang.dll since that's
|
# FIXME: Also, the executable can't find libclang.dll since that's
|
||||||
# in a different directory.
|
# in a different directory.
|
||||||
deps += [ "libclang:libclangTests" ]
|
deps += [
|
||||||
|
"libclang:libclangTests",
|
||||||
|
"libclang/CrashTests:libclangCrashTests",
|
||||||
|
]
|
||||||
}
|
}
|
||||||
testonly = true
|
testonly = true
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
import("//llvm/utils/unittest/unittest.gni")
|
||||||
|
|
||||||
|
unittest("libclangCrashTests") {
|
||||||
|
configs += [ "//llvm/utils/gn/build:clang_code" ]
|
||||||
|
deps = [
|
||||||
|
"//clang/tools/libclang",
|
||||||
|
]
|
||||||
|
sources = [
|
||||||
|
"LibclangCrashTest.cpp",
|
||||||
|
]
|
||||||
|
if (host_os == "mac") {
|
||||||
|
ldflags = [ "-Wl,-rpath," + rebase_path("$root_out_dir/lib") ]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue