Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ jobs:
# - ubuntu-18.04_armv8
# - ubuntu-20.04_armv8
# - ubuntu-18.04_x86_64
- ubuntu-20.04_x86_64
# - ubuntu-22.04_x86_64
# - ubuntu-20.04_x86_64
- ubuntu-22.04_x86_64
# - android
# - android_prefixed
runs-on: linux-large
Expand Down
2 changes: 1 addition & 1 deletion build-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ case "$AUTOBUILD_PLATFORM" in
autobuild="$AUTOBUILD"
;;
linux*)
build_type="ubuntu-20.04_x86_64"
build_type="ubuntu-22.04_x86_64"
autobuild="$AUTOBUILD"
;;
*)
Expand Down
15 changes: 15 additions & 0 deletions build/patches/enable_gcc_permissive.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/BUILD.gn b/BUILD.gn
index e4a82bc8d6..54fde4ce9a 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -384,6 +384,10 @@ config("common_config") {
# warning.
"-Wctad-maybe-unsupported",
]
+ } else {
+ if(is_linux) {
+ cflags += [ "-fpermissive" ]
+ }
}

if (build_with_chromium) {
12 changes: 12 additions & 0 deletions build/patches/gcc_fpermissive_error.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -durN webrtc-m137/p2p/base/port_interface.h webrtc-m137-patched/p2p/base/port_interface.h
--- webrtc-m137/p2p/base/port_interface.h 2025-09-01 14:30:40.000000000 +0200
+++ webrtc-m137-patched/p2p/base/port_interface.h 2025-09-05 15:07:36.904283022 +0200
@@ -55,7 +55,7 @@
virtual ~PortInterface();

virtual IceCandidateType Type() const = 0;
- virtual const Network* Network() const = 0;
+ virtual const webrtc::Network* Network() const = 0;

// Methods to set/get ICE role and tiebreaker values.
virtual void SetIceRole(IceRole role) = 0;
34 changes: 27 additions & 7 deletions build/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ def get_depot_tools(source_dir, fetch=False):
'bug_8759_workaround.patch',
'disable_mute_of_audio_processing.patch',
'crash_on_fatal_error.patch',
'gcc_fpermissive_error.patch',
'enable_gcc_permissive.patch',
],
'raspberry-pi-os_armv7': [
'add_license_dav1d.patch',
Expand All @@ -276,6 +278,8 @@ def get_depot_tools(source_dir, fetch=False):
'bug_8759_workaround.patch',
'disable_mute_of_audio_processing.patch',
'crash_on_fatal_error.patch',
'gcc_fpermissive_error.patch',
'enable_gcc_permissive.patch',
],
'raspberry-pi-os_armv8': [
'add_license_dav1d.patch',
Expand All @@ -284,6 +288,8 @@ def get_depot_tools(source_dir, fetch=False):
'bug_8759_workaround.patch',
'disable_mute_of_audio_processing.patch',
'crash_on_fatal_error.patch',
'gcc_fpermissive_error.patch',
'enable_gcc_permissive.patch',
],
'ubuntu-18.04_armv8': [
'add_license_dav1d.patch',
Expand All @@ -292,6 +298,8 @@ def get_depot_tools(source_dir, fetch=False):
'bug_8759_workaround.patch',
'disable_mute_of_audio_processing.patch',
'crash_on_fatal_error.patch',
'gcc_fpermissive_error.patch',
'enable_gcc_permissive.patch',
],
'ubuntu-20.04_armv8': [
'add_license_dav1d.patch',
Expand All @@ -300,6 +308,8 @@ def get_depot_tools(source_dir, fetch=False):
'bug_8759_workaround.patch',
'disable_mute_of_audio_processing.patch',
'crash_on_fatal_error.patch',
'gcc_fpermissive_error.patch',
'enable_gcc_permissive.patch',
],
'ubuntu-18.04_x86_64': [
'add_license_dav1d.patch',
Expand All @@ -308,6 +318,8 @@ def get_depot_tools(source_dir, fetch=False):
'bug_8759_workaround.patch',
'disable_mute_of_audio_processing.patch',
'crash_on_fatal_error.patch',
'gcc_fpermissive_error.patch',
'enable_gcc_permissive.patch',
],
'ubuntu-20.04_x86_64': [
'add_license_dav1d.patch',
Expand All @@ -316,6 +328,8 @@ def get_depot_tools(source_dir, fetch=False):
'bug_8759_workaround.patch',
'disable_mute_of_audio_processing.patch',
'crash_on_fatal_error.patch',
'gcc_fpermissive_error.patch',
'enable_gcc_permissive.patch',
],
'ubuntu-22.04_x86_64': [
'add_license_dav1d.patch',
Expand All @@ -324,6 +338,8 @@ def get_depot_tools(source_dir, fetch=False):
'bug_8759_workaround.patch',
'disable_mute_of_audio_processing.patch',
'crash_on_fatal_error.patch',
'gcc_fpermissive_error.patch',
'enable_gcc_permissive.patch',
],
}

Expand Down Expand Up @@ -374,7 +390,7 @@ def get_webrtc(source_dir, patch_dir, version, target,
cmd(['git', 'branch'])
cmd(['git', 'checkout', '-f', version])
cmd(['git', 'clean', '-df'])
cmd(['gclient', 'sync', '-D', '--force', '--reset', '--with_branch_heads', '--jobs=8'])
cmd(['gclient', 'sync', '-D', '--force', '--reset', '--revision', version, '--no-history', '--jobs=8'])
for patch in PATCHES[target]:
depth, dirs = PATCH_INFO.get(patch, (1, ['.']))
dir = os.path.join(src_dir, *dirs)
Expand Down Expand Up @@ -752,7 +768,8 @@ def build_webrtc(
f'target_cpu="{target_cpus[target]}"',
"use_custom_libcxx=false",
"use_custom_libcxx_for_host=false",
"is_clang=true"
"is_clang=true",
'use_lld=false',
]
elif target in ('macos_x86_64', 'macos_arm64'):
gn_args += [
Expand Down Expand Up @@ -797,9 +814,14 @@ def build_webrtc(
gn_args += [
'target_os="linux"',
'rtc_use_pipewire=false',
'rtc_use_x11=false',
"use_custom_libcxx=false",
"use_custom_libcxx_for_host=false",
'rtc_include_pulse_audio=false',
'is_clang=false',
'clang_use_chrome_plugins=false',
'use_lld=false',
'use_thin_lto=false',
'rtc_include_pulse_audio=true',
'rtc_include_internal_audio_device=true',
]
else:
Expand All @@ -824,10 +846,8 @@ def build_webrtc(

if target in ['windows_x86_64', 'windows_x86', 'windows_arm64']:
pass
elif target in ('macos_x86_64', 'macos_arm64'):
ar = '/usr/bin/ar'
else:
ar = os.path.join(webrtc_src_dir, 'third_party/llvm-build/Release+Asserts/bin/llvm-ar')
ar = '/usr/bin/ar'

# ar で libwebrtc.a を生成する
# Create libwebrtc.a with ar
Expand Down Expand Up @@ -1218,7 +1238,7 @@ def main():
commit = version_info.webrtc_commit
if args.commit:
commit = args.commit

print("Building for commit: ", commit)

# ソース取得
Expand Down
5 changes: 3 additions & 2 deletions build/scripts/apt_install_x86_64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apt-get -y upgrade
# tzdata を noninteractive にしないと実行が止まってしまう
# need to set tzdata to noninteractive or else it'll stop
apt-get -y install tzdata
echo 'Asia/Tokyo' > /etc/timezone
echo 'America/New_York' > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata

export DEBIAN_FRONTEND=noninteractive
Expand All @@ -27,4 +27,5 @@ apt-get -y install \
unzip \
vim \
wget \
xz-utils
xz-utils \
build-essential