diff --git a/dom/media/CubebUtils.cpp b/dom/media/CubebUtils.cpp index 4390be5197..4b161e5e5c 100644 --- a/dom/media/CubebUtils.cpp +++ b/dom/media/CubebUtils.cpp @@ -55,11 +55,6 @@ #define PREF_AUDIOIPC_POOL_SIZE "media.audioipc.pool_size" #define PREF_AUDIOIPC_STACK_SIZE "media.audioipc.stack_size" -#if (defined(XP_LINUX) && !defined(MOZ_WIDGET_ANDROID)) || \ - defined(XP_MACOSX) || (defined(XP_WIN) && !defined(_ARM64_)) -# define MOZ_CUBEB_REMOTING -#endif - extern "C" { // This must match AudioIpcInitParams in media/audioipc/client/src/lib.rs. diff --git a/toolkit/library/rust/gkrust-features.mozbuild b/toolkit/library/rust/gkrust-features.mozbuild index 67472fa970..cdc01b8c48 100644 --- a/toolkit/library/rust/gkrust-features.mozbuild +++ b/toolkit/library/rust/gkrust-features.mozbuild @@ -19,7 +19,7 @@ if CONFIG['MOZ_RUST_SIMD']: # This feature is not yet supported on all platforms, and this check needs to # match MOZ_CUBEB_REMOTING in CubebUtils.cpp. -if (CONFIG['OS_ARCH'] == 'Linux' and CONFIG['OS_TARGET'] != 'Android') or CONFIG['OS_ARCH'] == 'Darwin' or (CONFIG['OS_ARCH'] == 'WINNT' and CONFIG['CPU_ARCH'] != 'aarch64'): +if ((CONFIG['OS_ARCH'] == 'Linux' and CONFIG['OS_TARGET'] != 'Android') or CONFIG['OS_ARCH'] == 'Darwin' or (CONFIG['OS_ARCH'] == 'WINNT' and CONFIG['CPU_ARCH'] != 'aarch64')) and CONFIG['MOZ_CUBEB_REMOTING']: gkrust_features += ['cubeb-remoting'] if CONFIG['MOZ_MEMORY']: