Repository navigation
build: Fix the Windows, macOS and Flatpak builds after #1128 (unity skip lists, scripting, AJA) - #1139
Merged
Conversation
…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.
5 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#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:.cppand.mm.(c|cpp|cc|m|mm), and CMake takes the first matching alternative, sofoo.cppwas read asfoo.candfoo.mmasfoo.m. No C++ or Objective-C++ source ever matched a skip rule..mmfiles sat in a C++ batch (Foundation parsed as C++ on macOS).swig_type_info; Flatpak), andENABLE_ZCCACHEis opt-in (soldr 0.9.34 can still stall a compile on a busy daemon, broker reaps the shared daemon while other sessions still have compiles in flight, losing them (693 orphaned compiles, 30 restarts in 11 h → 1800 s reply timeouts) forge-ci/soldr#3815).aja-common.hppgets an include guard (macOS and Flatpak), andplatform-windows.cstays 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.