Skip to content

Commit 0a22ab7

Browse files
authored
Merge pull request #25969 from drodriguez/fix-driver-options-test-windows
[windows] Use unprefixed library name for immediate mode.
2 parents a39f031 + 50fd6ea commit 0a22ab7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Immediate/Immediate.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ static void *loadRuntimeLib(StringRef sharedLibName,
7878

7979
void *swift::immediate::loadSwiftRuntime(ArrayRef<std::string>
8080
runtimeLibPaths) {
81+
#if defined(_WIN32)
82+
return loadRuntimeLib("swiftCore" LTDL_SHLIB_EXT, runtimeLibPaths);
83+
#else
8184
return loadRuntimeLib("libswiftCore" LTDL_SHLIB_EXT, runtimeLibPaths);
85+
#endif
8286
}
8387

8488
static bool tryLoadLibrary(LinkLibrary linkLib,

0 commit comments

Comments
 (0)