[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:21:53 PDT 2024
https://github.com/AtariDreams updated https://github.com/llvm/llvm-project/pull/89286
>From 15f6d733a980295811ee61a7009181887c051317 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 | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/llvm/utils/gn/secondary/compiler-rt/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/BUILD.gn
index b31016108419e6..47e89bcb21c6a0 100644
--- a/llvm/utils/gn/secondary/compiler-rt/BUILD.gn
+++ b/llvm/utils/gn/secondary/compiler-rt/BUILD.gn
@@ -34,4 +34,12 @@ 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" ]
+ args = [ "-create" ] + rebase_path(deps) + [ "-output", "$target_gen_dir/libcompiler_rt.a" ]
+ }
+
+ deps += [ ":lipo" ]
}
More information about the llvm-commits
mailing list