[llvm] decf88d - [gn] port eeee5a44bbf2 (clang-sycl-linker)

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 1 18:29:12 PDT 2024


Author: Nico Weber
Date: 2024-11-01T21:28:48-04:00
New Revision: decf88d3e962ae78d65997e14be52ea6537ea98a

URL: https://github.com/llvm/llvm-project/commit/decf88d3e962ae78d65997e14be52ea6537ea98a
DIFF: https://github.com/llvm/llvm-project/commit/decf88d3e962ae78d65997e14be52ea6537ea98a.diff

LOG: [gn] port eeee5a44bbf2 (clang-sycl-linker)

Also port follow-up 0d499f9043fed14.

Added: 
    llvm/utils/gn/secondary/clang/tools/clang-sycl-linker/BUILD.gn

Modified: 
    llvm/utils/gn/secondary/clang/test/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/clang/test/BUILD.gn b/llvm/utils/gn/secondary/clang/test/BUILD.gn
index 97610d4c95749d..41edc072a55e7d 100644
--- a/llvm/utils/gn/secondary/clang/test/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/test/BUILD.gn
@@ -173,6 +173,7 @@ group("test") {
     "//clang/tools/clang-refactor",
     "//clang/tools/clang-repl",
     "//clang/tools/clang-scan-deps",
+    "//clang/tools/clang-sycl-linker",
     "//clang/tools/diagtool",
     "//clang/tools/driver:symlinks",
     "//clang/unittests",

diff  --git a/llvm/utils/gn/secondary/clang/tools/clang-sycl-linker/BUILD.gn b/llvm/utils/gn/secondary/clang/tools/clang-sycl-linker/BUILD.gn
new file mode 100644
index 00000000000000..6199b9aaa1a8f9
--- /dev/null
+++ b/llvm/utils/gn/secondary/clang/tools/clang-sycl-linker/BUILD.gn
@@ -0,0 +1,19 @@
+import("//llvm/utils/TableGen/tablegen.gni")
+
+tablegen("SYCLLinkOpts") {
+  args = [ "-gen-opt-parser-defs" ]
+}
+
+executable("clang-sycl-linker") {
+  configs += [ "//llvm/utils/gn/build:clang_code" ]
+  deps = [
+    ":SYCLLinkOpts",
+    "//clang/lib/Basic",
+    "//llvm/lib/BinaryFormat",
+    "//llvm/lib/Option",
+    "//llvm/lib/Object",
+    "//llvm/lib/Support",
+    "//llvm/lib/TargetParser",
+  ]
+  sources = [ "ClangSYCLLinker.cpp" ]
+}


        


More information about the llvm-commits mailing list