]> granicus.if.org Git - llvm/commitdiff
gn build: (manually) merge r371787
authorNico Weber <nicolasweber@gmx.de>
Fri, 13 Sep 2019 12:58:52 +0000 (12:58 +0000)
committerNico Weber <nicolasweber@gmx.de>
Fri, 13 Sep 2019 12:58:52 +0000 (12:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371847 91177308-0d34-0410-b5e6-96231b3b80d8

utils/gn/secondary/clang/tools/libclang/BUILD.gn
utils/gn/secondary/clang/unittests/BUILD.gn
utils/gn/secondary/clang/unittests/libclang/CrashTests/BUILD.gn [new file with mode: 0644]

index eb04b3071fad0cb156434aab61b905faf1259106..a41a34cb9ef97ae583a685442c18cadfa7b19d32 100644 (file)
@@ -84,6 +84,7 @@ target(libclang_target_type, "libclang") {
     "CXTranslationUnit.h",
     "CXType.cpp",
     "CXType.h",
+    "FatalErrorHandler.cpp",
     "Index_Internal.h",
     "Indexing.cpp",
   ]
index befe73b8d9d91abd71fdfbf2d78084234183fe83..d1382919b5e293c7e5646a86d42d163423e6f8ea 100644 (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
 }
diff --git a/utils/gn/secondary/clang/unittests/libclang/CrashTests/BUILD.gn b/utils/gn/secondary/clang/unittests/libclang/CrashTests/BUILD.gn
new file mode 100644 (file)
index 0000000..05ce1ec
--- /dev/null
@@ -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") ]
+  }
+}