[llvm] 78703c1 - [gn] port e235fcb582ee more (bolt TargetConfig.def)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 18 12:53:40 PST 2025
Author: Nico Weber
Date: 2025-02-18T15:53:31-05:00
New Revision: 78703c176fb725012d4569dc38a1c5711536badc
URL: https://github.com/llvm/llvm-project/commit/78703c176fb725012d4569dc38a1c5711536badc
DIFF: https://github.com/llvm/llvm-project/commit/78703c176fb725012d4569dc38a1c5711536badc.diff
LOG: [gn] port e235fcb582ee more (bolt TargetConfig.def)
Added:
Modified:
llvm/utils/gn/secondary/bolt/include/bolt/Core/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/bolt/include/bolt/Core/BUILD.gn b/llvm/utils/gn/secondary/bolt/include/bolt/Core/BUILD.gn
index 2d7c1a70abe95..bf5cbf1ff0cd9 100644
--- a/llvm/utils/gn/secondary/bolt/include/bolt/Core/BUILD.gn
+++ b/llvm/utils/gn/secondary/bolt/include/bolt/Core/BUILD.gn
@@ -1,6 +1,14 @@
import("//llvm/lib/Target/write_target_def_file.gni")
+bolt_targets_to_build = []
+foreach(target, llvm_targets_to_build) {
+ if (target == "AArch64" || target == "RISCV" || target == "X86") {
+ bolt_targets_to_build += [ target ]
+ }
+}
+
write_target_def_file("TargetConfig.def") {
key = "BOLT_ENUM_TARGETS"
value = "BOLT_TARGET"
+ all_targets = bolt_targets_to_build
}
More information about the llvm-commits
mailing list