File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
SwiftKit/src/main/java/org/swift/swiftkit Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ public class SwiftKit {
34
34
static final boolean TRACE_DOWNCALLS = Boolean .getBoolean ("jextract.trace.downcalls" );
35
35
36
36
static {
37
- System .load (STDLIB_MACOS_DYLIB_PATH );
38
37
System .loadLibrary (STDLIB_DYLIB_NAME );
39
38
System .loadLibrary ("SwiftKitSwift" );
40
39
}
@@ -43,8 +42,7 @@ public class SwiftKit {
43
42
44
43
private static SymbolLookup getSymbolLookup () {
45
44
if (PlatformUtils .isMacOS ()) {
46
- // FIXME: why does this not find just by name on macOS?
47
- // SymbolLookup.libraryLookup(System.mapLibraryName(STDLIB_DYLIB_NAME), LIBRARY_ARENA)
45
+ // On Apple platforms we need to lookup using the complete path
48
46
return SymbolLookup .libraryLookup (STDLIB_MACOS_DYLIB_PATH , LIBRARY_ARENA )
49
47
.or (SymbolLookup .loaderLookup ())
50
48
.or (Linker .nativeLinker ().defaultLookup ());
You can’t perform that action at this time.
0 commit comments