[llvm] [compiler-rt] Lipo the compiler-rt libraries into one Universal Library (PR #89286)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 18 11:20:04 PDT 2024
https://github.com/AtariDreams created https://github.com/llvm/llvm-project/pull/89286
None
>From 7e046b268474a16e6917b574612ea74e2edea36e Mon Sep 17 00:00:00 2001
From: Rose <gfunni234 at gmail.com>
Date: Thu, 18 Apr 2024 14:19:29 -0400
Subject: [PATCH] [compiler-rt] Lipo the compiler-rt libraries into one
Universal Library
---
llvm/utils/gn/secondary/compiler-rt/BUILD.gn | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/llvm/utils/gn/secondary/compiler-rt/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/BUILD.gn
index b31016108419e6..ebc8df435b91fa 100644
--- a/llvm/utils/gn/secondary/compiler-rt/BUILD.gn
+++ b/llvm/utils/gn/secondary/compiler-rt/BUILD.gn
@@ -34,4 +34,14 @@ group("compiler-rt") {
deps += [ "//compiler-rt/lib/builtins(//llvm/utils/gn/build/toolchain:stage2_iossim_x64)" ]
}
}
+
+ action("lipo") {
+ script = "lipo"
+ outputs = [ "$target_gen_dir/libcompiler_rt.a" ]
+
+ # Pass the paths of the input libraries to the script
+ args = [ "-create" ] + rebase_path(deps) + [ "-output", "$target_gen_dir/libcompiler_rt.a" ]
+ }
+
+ deps += [ ":lipo" ]
}
More information about the llvm-commits
mailing list