Skip to content

Commit 5356a9b

Browse files
committed
[gn] port 3c657ce (llvm-ml64)
1 parent adb5775 commit 5356a9b

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

llvm/utils/gn/secondary/BUILD.gn

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ group("llvm-libtool-darwin") {
100100
group("llvm-lipo") {
101101
deps = [ "//llvm/tools/llvm-lipo:symlinks" ]
102102
}
103+
group("llvm-ml") {
104+
deps = [ "//llvm/tools/llvm-ml:symlinks" ]
105+
}
103106
group("llvm-objcopy") {
104107
deps = [ "//llvm/tools/llvm-objcopy:symlinks" ]
105108
}

llvm/utils/gn/secondary/llvm/test/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ group("test") {
295295
"//llvm/tools/llvm-lto2",
296296
"//llvm/tools/llvm-mc",
297297
"//llvm/tools/llvm-mca",
298-
"//llvm/tools/llvm-ml",
298+
"//llvm/tools/llvm-ml:symlinks",
299299
"//llvm/tools/llvm-modextract",
300300
"//llvm/tools/llvm-mt",
301301
"//llvm/tools/llvm-nm",

llvm/utils/gn/secondary/llvm/tools/llvm-ml/BUILD.gn

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
import("//llvm/utils/TableGen/tablegen.gni")
22
import("//llvm/utils/gn/build/driver_executable.gni")
3+
import("//llvm/utils/gn/build/symlink_or_copy.gni")
34

45
tablegen("Opts") {
56
visibility = [ ":llvm-ml" ]
67
args = [ "-gen-opt-parser-defs" ]
78
}
89

10+
symlink_or_copy("llvm-ml64") {
11+
deps = [ ":llvm-ml" ]
12+
source = "llvm-ml"
13+
output = "$root_out_dir/bin/llvm-ml64"
14+
}
15+
16+
# //:llvm-ml depends on this symlink target, see comment in //BUILD.gn.
17+
group("symlinks") {
18+
deps = [ ":llvm-ml64" ]
19+
}
20+
921
driver_executable("llvm-ml") {
1022
deps = [
1123
":Opts",

0 commit comments

Comments
 (0)