Skip to content

Commit b4906ce

Browse files
committed
Read inlined symbols from the dynamic lib on Windows.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
1 parent 2d4e0a6 commit b4906ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

QtSharp/CompileInlinesPass.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ public override bool VisitLibrary(ASTContext library)
2727
var qtVersion = ProcessHelper.Run(this.qmake, string.Format("-query {0}", qtVersionVariable), out error);
2828
var qtVersionFile = Path.Combine(this.Driver.Options.OutputDir, qtVersionVariable);
2929
var dir = Platform.IsMacOS ? this.Driver.Options.OutputDir : Path.Combine(this.Driver.Options.OutputDir, "release");
30-
var inlines = Path.GetFileName(string.Format("lib{0}.{1}", this.Driver.Options.InlinesLibraryName, Platform.IsMacOS ? "dylib" : "a"));
30+
var inlines = Path.GetFileName(string.Format("{0}{1}.{2}", Platform.IsWindows ? string.Empty : "lib",
31+
this.Driver.Options.InlinesLibraryName, Platform.IsMacOS ? "dylib" : "dll"));
3132
var libFile = Path.Combine(dir, inlines);
3233
var qtVersionFileInfo = new FileInfo(qtVersionFile);
3334
var inlinesFileInfo = new FileInfo(libFile);

0 commit comments

Comments
 (0)