Skip to content

Commit 09c2441

Browse files
committed
[gn] port e235fcb (bolt TargetConfig.def)
1 parent e5ce1d3 commit 09c2441

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import("//llvm/lib/Target/write_target_def_file.gni")
2+
3+
write_target_def_file("TargetConfig.def") {
4+
key = "BOLT_ENUM_TARGETS"
5+
value = "BOLT_TARGET"
6+
}

llvm/utils/gn/secondary/bolt/tools/driver/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ group("symlinks") {
2323
executable("llvm-bolt") {
2424
configs += [ "//llvm/utils/gn/build:bolt_code" ]
2525
deps = [
26+
"//bolt/include/bolt/Core:TargetConfig.def",
2627
"//bolt/lib/Profile",
2728
"//bolt/lib/Rewrite",
2829
"//bolt/lib/Utils",

llvm/utils/gn/secondary/bolt/tools/heatmap/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
executable("llvm-bolt-heatmap") {
22
configs += [ "//llvm/utils/gn/build:bolt_code" ]
33
deps = [
4+
"//bolt/include/bolt/Core:TargetConfig.def",
45
"//bolt/lib/Profile",
56
"//bolt/lib/Rewrite",
67
"//bolt/lib/Utils",

llvm/utils/gn/secondary/bolt/unittests/Core/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import("//third-party/unittest/unittest.gni")
44
unittest("CoreTests") {
55
configs += [ "//llvm/utils/gn/build:bolt_code" ]
66
deps = [
7+
"//bolt/include/bolt/Core:TargetConfig.def",
78
"//bolt/lib/Core",
89
"//bolt/lib/Rewrite",
910
"//bolt/lib/Profile",

0 commit comments

Comments
 (0)