Skip to content

feat(loader): support target platform evaluation#27

Merged
Sunrisepeak merged 2 commits into
mainfrom
feat/platform-loader-context
Jul 11, 2026
Merged

feat(loader): support target platform evaluation#27
Sunrisepeak merged 2 commits into
mainfrom
feat/platform-loader-context

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Summary

  • add LoaderContext { platform, arch } and a platform-aware load_package overload
  • evaluate legacy is_host, is_plat, is_arch, os.host, os.arch, and _RUNTIME conditionals inside libxpkg
  • preserve the existing context-free load_package(path) API
  • bump libxpkg to 0.0.44

This is required before openxlings/xlings#356 can delete its duplicate platform Lua parser and make libxpkg the only parse/compat/normalization entry point.

Validation

  • mcpp build passes
  • platform-context loader regression passes for Linux x86_64 and macOS aarch64
  • loader/compat suite: 27/27 pass
  • the full suite retains the same four pre-existing elfpatch executor failures reproduced on clean main

@Sunrisepeak Sunrisepeak marked this pull request as ready for review July 11, 2026 18:27
@Sunrisepeak Sunrisepeak merged commit 343a1fd into main Jul 11, 2026
1 check passed
@Sunrisepeak Sunrisepeak deleted the feat/platform-loader-context branch July 11, 2026 18:27
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