summaryrefslogtreecommitdiffstats
path: root/source/compiler-core
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-07-19 14:47:34 -0700
committerGitHub <noreply@github.com>2021-07-19 14:47:34 -0700
commit6162950d9012833ef5d4f96b99c67a46bf97ce6d (patch)
tree5eaca94218168560f7e7bf94ead208c24fa34485 /source/compiler-core
parentb00e2dc8e777a481f79c5c4fea4d1d0481fc445e (diff)
Enable swiftshader in linux CI builds (#1909)
Diffstat (limited to 'source/compiler-core')
-rw-r--r--source/compiler-core/slang-glslang-compiler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/compiler-core/slang-glslang-compiler.cpp b/source/compiler-core/slang-glslang-compiler.cpp
index e893ef0ea..fc8beaa48 100644
--- a/source/compiler-core/slang-glslang-compiler.cpp
+++ b/source/compiler-core/slang-glslang-compiler.cpp
@@ -260,6 +260,11 @@ SlangResult GlslangDownstreamCompiler::disassemble(SlangCompileTarget sourceBlob
// isn't going to be distributed with the shader compiler.
ComPtr<ISlangSharedLibrary> pthreadLibrary;
DefaultSharedLibraryLoader::load(loader, path, "pthread", pthreadLibrary.writeRef());
+ if (!pthreadLibrary.get())
+ {
+ DefaultSharedLibraryLoader::load(loader, path, "libpthread.so.0", pthreadLibrary.writeRef());
+ }
+
#endif
SLANG_RETURN_ON_FAIL(DownstreamCompilerUtil::loadSharedLibrary(path, loader, nullptr, "slang-glslang", library));