summaryrefslogtreecommitdiff
path: root/source/slang
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang')
-rw-r--r--source/slang/slang-options.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp
index b02c25549..10980f216 100644
--- a/source/slang/slang-options.cpp
+++ b/source/slang/slang-options.cpp
@@ -20,6 +20,7 @@
#include "../core/slang-hex-dump-util.h"
#include "../compiler-core/slang-command-line-args.h"
+#include "../compiler-core/slang-artifact-info.h"
#include <assert.h>
@@ -1402,7 +1403,7 @@ struct OptionsParser
auto path = referenceModuleName.value;
- auto desc = ArtifactDesc::fromPath(path.getUnownedSlice());
+ auto desc = ArtifactInfoUtil::getDescFromPath(path.getUnownedSlice());
if (desc.kind == ArtifactKind::Unknown)
{
@@ -1411,12 +1412,12 @@ struct OptionsParser
}
// If it's a GPU binary, then we'll assume it's a library
- if (desc.isGpuBinary())
+ if (ArtifactInfoUtil::isGpuBinary(desc))
{
desc.kind = ArtifactKind::Library;
}
- if (!desc.isBinaryLinkable())
+ if (!ArtifactInfoUtil::isBinaryLinkable(desc))
{
sink->diagnose(referenceModuleName.loc, Diagnostics::kindNotLinkable, Path::getPathExt(path));
return SLANG_FAIL;