mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
Merge pull request #8694 from roc-lang/fix-8693
Use `exports` (not `all_defs`) to only include exported platform definitions as entrypoints
This commit is contained in:
commit
e0360be969
1 changed files with 3 additions and 1 deletions
|
|
@ -2647,8 +2647,10 @@ fn compileAndSerializeModulesForEmbedding(
|
|||
}
|
||||
|
||||
// Get entry points from primary environment
|
||||
// Use exports (not all_defs) to only include exported definitions as entry points.
|
||||
// all_defs includes method definitions from associated blocks which should not be entry points.
|
||||
const primary_env = &compiled_modules.items[primary_env_index].env;
|
||||
const entry_defs = primary_env.all_defs;
|
||||
const entry_defs = primary_env.exports;
|
||||
const entry_count: u32 = entry_defs.span.len;
|
||||
|
||||
// Build entry def indices - use sliceDefs to get actual Def.Idx values
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue