summaryrefslogtreecommitdiff
path: root/source/compiler-core/slang-visual-studio-compiler-util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler-core/slang-visual-studio-compiler-util.cpp')
-rw-r--r--source/compiler-core/slang-visual-studio-compiler-util.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/compiler-core/slang-visual-studio-compiler-util.cpp b/source/compiler-core/slang-visual-studio-compiler-util.cpp
index d70f7ca84..d0f748c76 100644
--- a/source/compiler-core/slang-visual-studio-compiler-util.cpp
+++ b/source/compiler-core/slang-visual-studio-compiler-util.cpp
@@ -260,7 +260,7 @@ namespace Slang
}
// Link libraries.
- for (Artifact* artifact : options.libraries)
+ for (IArtifact* artifact : options.libraries)
{
auto desc = artifact->getDesc();
@@ -269,9 +269,9 @@ namespace Slang
// Get the libray name and path
SLANG_RETURN_ON_FAIL(artifact->requireFileLike(ArtifactKeep::No));
- libPathPool.add(artifact->getParentPath());
+ libPathPool.add(ArtifactInfoUtil::getParentPath(artifact));
// We need the extension for windows
- cmdLine.addArg(artifact->getBaseName() + ".lib");
+ cmdLine.addArg(ArtifactInfoUtil::getBaseName(artifact) + ".lib");
}
}