diff options
| author | Yong He <yonghe@outlook.com> | 2021-07-19 14:47:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-19 14:47:34 -0700 |
| commit | 6162950d9012833ef5d4f96b99c67a46bf97ce6d (patch) | |
| tree | 5eaca94218168560f7e7bf94ead208c24fa34485 /source/core | |
| parent | b00e2dc8e777a481f79c5c4fea4d1d0481fc445e (diff) | |
Enable swiftshader in linux CI builds (#1909)
Diffstat (limited to 'source/core')
| -rw-r--r-- | source/core/slang-platform.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/core/slang-platform.cpp b/source/core/slang-platform.cpp index e46851095..5185d5d23 100644 --- a/source/core/slang-platform.cpp +++ b/source/core/slang-platform.cpp @@ -209,9 +209,11 @@ SLANG_COMPILE_TIME_ASSERT(E_OUTOFMEMORY == SLANG_E_OUT_OF_MEMORY); dst.Append(name); dst.Append(".dylib"); #elif SLANG_LINUX_FAMILY - dst.Append("lib"); + if (!name.startsWith("lib")) + dst.Append("lib"); dst.Append(name); - dst.Append(".so"); + if (name.indexOf(UnownedStringSlice(".so.")) == -1) + dst.Append(".so"); #else // Just guess we can do with the name on it's own dst.Append(name); |
