Skip to content

Commit 78703c1

Browse files
committed
[gn] port e235fcb more (bolt TargetConfig.def)
1 parent 01f2f81 commit 78703c1

File tree

1 file changed

+8
-0
lines changed
  • llvm/utils/gn/secondary/bolt/include/bolt/Core

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
import("//llvm/lib/Target/write_target_def_file.gni")
22

3+
bolt_targets_to_build = []
4+
foreach(target, llvm_targets_to_build) {
5+
if (target == "AArch64" || target == "RISCV" || target == "X86") {
6+
bolt_targets_to_build += [ target ]
7+
}
8+
}
9+
310
write_target_def_file("TargetConfig.def") {
411
key = "BOLT_ENUM_TARGETS"
512
value = "BOLT_TARGET"
13+
all_targets = bolt_targets_to_build
614
}

0 commit comments

Comments
 (0)