diff options
| author | kaizhangNV <149626564+kaizhangNV@users.noreply.github.com> | 2024-06-05 22:11:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-05 22:11:29 -0700 |
| commit | c0c426c8826aab8fe3c0756ccb1efcf7d47856ae (patch) | |
| tree | f39c6b8aa8695a3d629a27006433022c46e66a56 /source/slang/slang-compiler.cpp | |
| parent | e757ce7793d68af2347d71311df58b1bab7847ae (diff) | |
Avoid duplicating entry points in library (#4279)
Diffstat (limited to 'source/slang/slang-compiler.cpp')
| -rw-r--r-- | source/slang/slang-compiler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang-compiler.cpp b/source/slang/slang-compiler.cpp index 7211a1f6e..147d4a889 100644 --- a/source/slang/slang-compiler.cpp +++ b/source/slang/slang-compiler.cpp @@ -2444,6 +2444,9 @@ namespace Slang void Module::_discoverEntryPoints(DiagnosticSink* sink, const List<RefPtr<TargetRequest>>& targets) { + if (m_entryPoints.getCount() > 0) + return; + for (auto globalDecl : m_moduleDecl->members) { auto maybeFuncDecl = globalDecl; |
