diff options
Diffstat (limited to 'source/compiler-core/slang-gcc-compiler-util.cpp')
| -rw-r--r-- | source/compiler-core/slang-gcc-compiler-util.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/compiler-core/slang-gcc-compiler-util.cpp b/source/compiler-core/slang-gcc-compiler-util.cpp index 554322198..ca1d8e8e3 100644 --- a/source/compiler-core/slang-gcc-compiler-util.cpp +++ b/source/compiler-core/slang-gcc-compiler-util.cpp @@ -631,7 +631,7 @@ static SlangResult _parseGCCFamilyLine(const UnownedStringSlice& line, LineParse } // Artifacts might add library paths - for (Artifact* artifact : options.libraries) + for (IArtifact* artifact : options.libraries) { const auto desc = artifact->getDesc(); // If it's a library for CPU types, try and use it @@ -640,8 +640,8 @@ static SlangResult _parseGCCFamilyLine(const UnownedStringSlice& line, LineParse // Get the name and path (can be empty) to the library SLANG_RETURN_ON_FAIL(artifact->requireFileLike(ArtifactKeep::No)); - libPathPool.add(artifact->getParentPath()); - cmdLine.addPrefixPathArg("-l", artifact->getBaseName()); + libPathPool.add(ArtifactInfoUtil::getParentPath(artifact)); + cmdLine.addPrefixPathArg("-l", ArtifactInfoUtil::getBaseName(artifact)); } } |
