Use ld64 for ios_debug (#573)
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index db4a41a..445b348 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -148,6 +148,13 @@
if (enable_bitcode) {
if (bitcode_marker) {
+ # lld, which is the default, does not support the -bitcode_process_mode
+ # flag that gets plumbed to it as a result of -fembed-bitcode-marker, so
+ # we fall back on ld64.
+ # See: https://github.com/llvm/llvm-project/issues/55415
+ if (!use_xcode) {
+ ldflags += [ "-fuse-ld=ld" ]
+ }
common_mac_flags += [ "-fembed-bitcode-marker" ]
} else {
common_mac_flags += [ "-fembed-bitcode" ]