From c62dcc951dbf648ea2d16201b1de81dddc2ee9ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 2 Mar 2022 15:21:45 +0100 Subject: [PATCH] Reland "Avoid using lld when compiling iin iOS with bitcode" This is a reland of commit b7ba6027659913883af3d64ec0fdfcba96176816 Original change's description: > Avoid using lld when compiling iin iOS with bitcode > > The resulting framework's LLVM __bundle segment is empty otherwise. > > Bug: webrtc:13774 > Change-Id: I235a3005f8e0d68168f29108be0f7c5b7914182b > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/253140 > Reviewed-by: Mirko Bonadei > Commit-Queue: Mirko Bonadei > Cr-Commit-Position: refs/heads/main@{#36178} Bug: webrtc:13774 Change-Id: Ia88b26d91bf1cf7323d04f024155ecf394498c41 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/256481 Reviewed-by: Ilya Nikolaevskiy Commit-Queue: Mirko Bonadei Cr-Commit-Position: refs/heads/main@{#36302} --- tools_webrtc/ios/build_ios_libs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools_webrtc/ios/build_ios_libs.py b/tools_webrtc/ios/build_ios_libs.py index 15a912e4ba..9a4c3e32ad 100755 --- a/tools_webrtc/ios/build_ios_libs.py +++ b/tools_webrtc/ios/build_ios_libs.py @@ -180,6 +180,7 @@ def BuildWebRTC(output_dir, target_environment, target_arch, flavor, ('true' if libvpx_build_vp9 else 'false')) gn_args.append('enable_ios_bitcode=' + ('true' if use_bitcode else 'false')) + gn_args.append('use_lld=' + ('false' if use_bitcode else 'true')) gn_args.append('use_goma=' + ('true' if use_goma else 'false')) gn_args.append('rtc_enable_objc_symbol_export=true')