Skip to content

build: Fix the Windows, macOS and Flatpak builds after #1128 (unity skip lists, scripting, AJA) - #1139

Merged
zackees merged 3 commits into
masterfrom
build/pch-unity-fixes
Oct 17, 2026
Merged

zackees merged 3 commits into
masterfrom
build/pch-unity-fixes

Conversation

@zackees

@zackees zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member

#1128 merged at 6922ac01a, two commits before its fixes for the full Windows, macOS and Flatpak builds, so those builds fail on master. This PR adds those two commits unchanged:

  1. bd5f6e3: skip lists now match .cpp and .mm.
  2. af87900: aja-common.hpp gets an include guard (macOS and Flatpak), and platform-windows.c stays out of batches. It needs the full <windows.h> (NTSTATUS); on Windows arm64 an earlier source in the batch includes it lean.

Verified on 27af679d5 (same changes on the old base):

PR CI path-scopes the full app builds, so I'll also dispatch a full run on this branch.

…ty; zccache opt-in

- The file-name extraction listed extensions as (c|cpp|cc|m|mm), and CMake's
  regex takes the first alternative that matches: foo.cpp was read as foo.c
  and foo.mm as foo.m, so no C++ or Objective-C++ source ever matched a skip
  rule. libdshowcapture's .cpp sources therefore still shared batches with
  obs-virtualcam-module's (winsock redefinitions on Windows arm64) and the
  DAL plugin's .mm files sat in a C++ batch (Foundation parsed as C++ on
  macOS). Longer extensions now come first.
- obs-scripting compiles both the Lua and the Python SWIG runtimes, which
  define the same swig_type_info helpers: no unity batches (the Flatpak
  build, which enables scripting, failed on it).
- ENABLE_ZCCACHE is now opt-in: with soldr 0.9.34 a compile can still wait
  indefinitely on a busy shared daemon (forge-ci/soldr#3815), which stalled a
  local build here, and the launcher is still found by path
  (forge-ci/soldr#3829).
… batches

aja-common.hpp had no include guard, so a unity batch that includes it
twice redefined its constants and default arguments (macOS and Flatpak,
the builds that enable AJA). platform-windows.c needs the full <windows.h>
(NTSTATUS for RtlGetVersion); in a batch an earlier source may have included
it with WIN32_LEAN_AND_MEAN, which util/sse-intrin.h leaves defined on
Windows arm64, making its own include a no-op.
#1128 turned ENABLE_UNITY_BUILD on for Windows and macOS, but their full
builds still hit collisions in targets cmake/cross doesn't compile
(libobs-d3d11's featureLevels, nv-filters, text-freetype2, win-dshow's
unguarded shared headers, frontend-tools' byte vs std::byte, obs-browser's
DispatchJSEvent). Off there by default again until those are fixed;
precompiled headers stay on everywhere.
@zackees
zackees added this pull request to the merge queue Oct 16, 2026
Merged via the queue into master with commit 02f8469 Oct 17, 2026
47 of 52 checks passed
@zackees
zackees deleted the build/pch-unity-fixes branch October 26, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant