[llvm] 5356a9b - [gn] port 3c657ceef9ced (llvm-ml64)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 20 10:39:17 PDT 2025
Author: Nico Weber
Date: 2025-03-20T13:38:51-04:00
New Revision: 5356a9bcbb0b8364ce11276444055d8769bd5bae
URL: https://github.com/llvm/llvm-project/commit/5356a9bcbb0b8364ce11276444055d8769bd5bae
DIFF: https://github.com/llvm/llvm-project/commit/5356a9bcbb0b8364ce11276444055d8769bd5bae.diff
LOG: [gn] port 3c657ceef9ced (llvm-ml64)
Added:
Modified:
llvm/utils/gn/secondary/BUILD.gn
llvm/utils/gn/secondary/llvm/test/BUILD.gn
llvm/utils/gn/secondary/llvm/tools/llvm-ml/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/BUILD.gn b/llvm/utils/gn/secondary/BUILD.gn
index 5188bb80d17fa..83093f33fcaf2 100644
--- a/llvm/utils/gn/secondary/BUILD.gn
+++ b/llvm/utils/gn/secondary/BUILD.gn
@@ -100,6 +100,9 @@ group("llvm-libtool-darwin") {
group("llvm-lipo") {
deps = [ "//llvm/tools/llvm-lipo:symlinks" ]
}
+group("llvm-ml") {
+ deps = [ "//llvm/tools/llvm-ml:symlinks" ]
+}
group("llvm-objcopy") {
deps = [ "//llvm/tools/llvm-objcopy:symlinks" ]
}
diff --git a/llvm/utils/gn/secondary/llvm/test/BUILD.gn b/llvm/utils/gn/secondary/llvm/test/BUILD.gn
index c81b159a45c6a..228642667b41d 100644
--- a/llvm/utils/gn/secondary/llvm/test/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/test/BUILD.gn
@@ -295,7 +295,7 @@ group("test") {
"//llvm/tools/llvm-lto2",
"//llvm/tools/llvm-mc",
"//llvm/tools/llvm-mca",
- "//llvm/tools/llvm-ml",
+ "//llvm/tools/llvm-ml:symlinks",
"//llvm/tools/llvm-modextract",
"//llvm/tools/llvm-mt",
"//llvm/tools/llvm-nm",
diff --git a/llvm/utils/gn/secondary/llvm/tools/llvm-ml/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-ml/BUILD.gn
index 9e3fb96861dbd..2d8381407e9e8 100644
--- a/llvm/utils/gn/secondary/llvm/tools/llvm-ml/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/tools/llvm-ml/BUILD.gn
@@ -1,11 +1,23 @@
import("//llvm/utils/TableGen/tablegen.gni")
import("//llvm/utils/gn/build/driver_executable.gni")
+import("//llvm/utils/gn/build/symlink_or_copy.gni")
tablegen("Opts") {
visibility = [ ":llvm-ml" ]
args = [ "-gen-opt-parser-defs" ]
}
+symlink_or_copy("llvm-ml64") {
+ deps = [ ":llvm-ml" ]
+ source = "llvm-ml"
+ output = "$root_out_dir/bin/llvm-ml64"
+}
+
+# //:llvm-ml depends on this symlink target, see comment in //BUILD.gn.
+group("symlinks") {
+ deps = [ ":llvm-ml64" ]
+}
+
driver_executable("llvm-ml") {
deps = [
":Opts",
More information about the llvm-commits
mailing list