Skip to content

build: scope Objective-C ARC options to their native language - #1665

Merged
zackees merged 2 commits into
masterfrom
infra/1332-objective-options
Oct 21, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/1332-objective-options

Conversation

@zackees

@zackees zackees commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Scope

Next dependent prerequisite for #1332: language-scoped Objective-C and Objective-C++ compilation flags, needed for ARC compilation without passing Objective-C flags to C/C++ sources.

Refs #1332. This does not complete the Cargo application conversion. The real macOS core contains both ARC and non-ARC Objective-C groups: per-source overrides remain necessary before wiring that graph. These fields set language defaults and preserve the existing non-ARC behavior when empty.

Changes

Add objc_compile_options and objcpp_compile_options, applied only to the matching compilation batch before compiling its PCH. C and C++ compiler/link-driver behavior remains unchanged.

RED → GREEN

  • RED 8b60093: strengthened existing mixed-language contract fails actual Clang compilation with ARC flag missing and Objective-C flags missing or contaminated. New option fields are inert in RED.
  • GREEN 67f86fc: all 12 native-build contracts pass. Mixed-language contract uses real ARC parsing, compiles/links/loads all four unity/PCH combinations on Linux, detects flag leakage, observes header edits, then separately changes each Objective-C language's macro and verifies changed results after rebuilding/loading. No Cocoa SDK or Objective-C runtime stubs.
  • soldr cargo fmt --all: pass.
  • soldr cargo clippy -p obs-build -p obs-studio-rust --all-targets -- -D warnings: pass.
  • git diff --check: pass.
  • Single read-only clud-review reviewer: clean; independently reran the focused mixed-language contract successfully.

No macOS application run is claimed. No new workflow files, test executables, public-header changes, submodule pointers or existing C test changes.

@zackees
zackees marked this pull request as ready for review October 21, 2026 22:29
@zackees
zackees enabled auto-merge October 21, 2026 22:29
@zackees
zackees added this pull request to the merge queue Oct 21, 2026
Merged via the queue into master with commit b848944 Oct 21, 2026
22 checks passed
@zackees
zackees deleted the infra/1332-objective-options branch October 26, 2026 15:45
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