Skip to content

fix: enable macOS framework linking by setting ObjC language mode#23

Merged
repentsinner merged 1 commit intomainfrom
fix/macos-framework-linking
Feb 26, 2026
Merged

fix: enable macOS framework linking by setting ObjC language mode#23
repentsinner merged 1 commit intomainfrom
fix/macos-framework-linking

Conversation

@repentsinner
Copy link
Owner

native_toolchain_c only passes -framework flags to clang when the language is objectiveC. Without this, IOKit/CoreFoundation/AppKit frameworks were silently dropped, causing undefined symbol errors on macOS. Also fix hidOpen test to use 0xFFFF/0xFFFF instead of 0/0, since VID/PID 0 is a wildcard that matches real devices on macOS.

native_toolchain_c only passes -framework flags to clang when the
language is objectiveC. Without this, IOKit/CoreFoundation/AppKit
frameworks were silently dropped, causing undefined symbol errors on
macOS. Also fix hidOpen test to use 0xFFFF/0xFFFF instead of 0/0,
since VID/PID 0 is a wildcard that matches real devices on macOS.
@repentsinner repentsinner force-pushed the fix/macos-framework-linking branch from 4a4768a to 35b38d7 Compare February 26, 2026 08:04
@repentsinner repentsinner merged commit 1a708ec into main Feb 26, 2026
3 checks passed
@repentsinner repentsinner deleted the fix/macos-framework-linking branch February 26, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant