0

[tvOS] Use ChannelPosix in Mojo

tvOS does not support the mach_msg() system API because it lacks
multi-process support. As a result, the tvOS port cannot use
channel_mac.cc, which relies on mach_msg() for interprocess
communication. Instead, it uses channel_posix.cc and channel_posix.h by
disabling `mojo_use_apple_channel`.

Bug: 400860561
Change-Id: Iac6a9730215a7a141ba4eb006335c93f9c42f2ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6326495
Reviewed-by: Oksana Zhuravlova <oksamyt@chromium.org>
Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com>
Reviewed-by: Raphael Kubo da Costa <kubo@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1429270}
This commit is contained in:
Gyuyoung Kim
2025-03-06 17:44:19 -08:00
committed by Chromium LUCI CQ
parent 9a40a603e4
commit 8d8f546f2d

@ -2,11 +2,13 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/apple/mobile_config.gni")
import("//build/config/features.gni")
import("//build/config/sanitizers/sanitizers.gni")
declare_args() {
mojo_use_apple_channel = is_mac || (is_ios && use_blink)
mojo_use_apple_channel =
is_mac || (is_ios && use_blink && target_platform != "tvos")
# Builds non-ipcz-based Mojo Core. No longer supported anywhere but Chrome OS.
# We check target_os instead of is_chromeos since this also needs to be set