Skip to content

Commit 21918f4

Browse files
authored
Merge pull request #71004 from lhames/issue-68785
For scripts, use DYLD_FRAMEWORK/LIBRARY_PATH to find frameworks / run…
2 parents 50b83c8 + 06384be commit 21918f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Immediate/Immediate.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,10 @@ void *swift::immediate::loadSwiftRuntime(ArrayRef<std::string>
8989
runtimeLibPaths) {
9090
#if defined(_WIN32)
9191
return loadRuntimeLib("swiftCore" LTDL_SHLIB_EXT, runtimeLibPaths);
92-
#else
92+
#elif (defined(__linux__) || defined(_WIN64) || defined(__FreeBSD__))
9393
return loadRuntimeLib("libswiftCore" LTDL_SHLIB_EXT, runtimeLibPaths);
94+
#else
95+
return loadRuntimeLib("libswiftCore" LTDL_SHLIB_EXT, {"/usr/lib/swift"});
9496
#endif
9597
}
9698

0 commit comments

Comments
 (0)