Skip to content

Conversation

@ktoso
Copy link
Collaborator

@ktoso ktoso commented Aug 15, 2025

This way we can disable the automatic loading of libraries by passing -Dswift-java.auto-load-libraries=false to the jvm.

We may also consider a runtime API to do this?

// Ensure Swift and our Lib are loaded during static initialization of the class.
SwiftLibraries.loadLibrary("swiftCore");
SwiftLibraries.loadLibrary("SwiftKitSwift");
SwiftLibraries.loadLibrary(LIB_NAME);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The SwiftLibraries load was "overdoing it" a bit.

@ktoso ktoso merged commit e29deed into swiftlang:main Aug 15, 2025
110 of 114 checks passed
@ktoso ktoso deleted the wip-loading-libs branch August 15, 2025 11:15
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