Skip to content

Add Platform target with cross-platform logging support - #201

Merged
Kyle-Ye merged 3 commits into
mainfrom
feature/platform-log
Feb 24, 2026
Merged

Add Platform target with cross-platform logging support#201
Kyle-Ye merged 3 commits into
mainfrom
feature/platform-log

Conversation

@Kyle-Ye

Copy link
Copy Markdown
Member

Summary

  • Add a Platform C target (derived from Compute) providing platform_log_t abstraction — wraps os_log on Darwin, uses syslog on other platforms
  • Update OAG::misc_log() and OAG::error_log() to use platform_log_t, enabling logging on non-Darwin platforms
  • Rename openAttributeGraphSPITargetopenAttributeGraphCxxTarget and sharedCXXSettingssharedCxxSettings
  • Use .target(name: xxTarget.name) references instead of string literals in Package.swift

Test plan

  • swift build passes on macOS
  • Verify build on Linux

Add a Platform C target (derived from Compute) providing platform_log_t
abstraction. On Darwin, this wraps os_log; on other platforms, it uses
syslog. Update OAG::misc_log() and OAG::error_log() to use platform_log_t,
enabling logging on non-Darwin platforms.
Also rename openAttributeGraphSPITarget to openAttributeGraphCxxTarget
and sharedCXXSettings to sharedCxxSettings.
Reorder target declarations so dependencies use .target(name: xxTarget.name)
instead of duplicating name strings. Also separate plugin into its own section.
@codecov

codecovBot commented Feb 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 10.12%. Comparing base (c57b22e) to head (26a4452).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@## main #201 +/- ##
=======================================
Coverage 10.12% 10.12% =======================================
Files 28 28 Lines 820 820 =======================================
Hits 83 83 Misses 737 737 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Document that Swift headers must be cloned before building, either
manually via clone-swift.sh or using --disable-sandbox. Update build.sh
to use --disable-sandbox so the CloneSwiftPlugin can fetch headers.
@Kyle-Ye
Kyle-Ye merged commit 907b764 into mainFeb 24, 2026
4 of 5 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/platform-log branch February 24, 2026 10:15
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@Kyle-Ye