gn build: (manually) merge r371787

llvm-svn: 371847
This commit is contained in:
Nico Weber 2019-09-13 12:58:52 +00:00
parent 266f6347db
commit b6f4a7a107
3 changed files with 19 additions and 1 deletions

View File

@ -84,6 +84,7 @@ target(libclang_target_type, "libclang") {
"CXTranslationUnit.h",
"CXType.cpp",
"CXType.h",
"FatalErrorHandler.cpp",
"Index_Internal.h",
"Indexing.cpp",
]

View File

@ -31,7 +31,10 @@ group("unittests") {
# to failures, mostly in libclang.VirtualFileOverlay_*.
# FIXME: Also, the executable can't find libclang.dll since that's
# in a different directory.
deps += [ "libclang:libclangTests" ]
deps += [
"libclang:libclangTests",
"libclang/CrashTests:libclangCrashTests",
]
}
testonly = true
}

View File

@ -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") ]
}
}