Skip to content

Allow DEFAULT_LIBRARY_FUNCS_TO_INCLUDE to have native deps. NFC - #19843

Merged
sbc100 merged 1 commit into
mainfrom
library_func_deps
Jul 12, 2023
Merged

sbc100 merged 1 commit into
mainfrom
library_func_deps

Conversation

@sbc100

@sbc100 sbc100 commented Jul 12, 2023

Copy link
Copy Markdown
Collaborator

Fixes: #19759

@sbc100
sbc100 requested a review from kripken July 12, 2023 02:04
@sbc100
sbc100 force-pushed the library_func_deps branch 4 times, most recently from e5a5d4b to 012ca58 Compare July 12, 2023 18:10
@sbc100
sbc100 force-pushed the library_func_deps branch from 012ca58 to e71ee98 Compare July 12, 2023 18:19

@kripken kripken left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm % questions

Comment thread emcc.py
settings.DYNCALLS = 1
settings.REQUIRED_EXPORTS += ['emscripten_stack_get_base',
'emscripten_stack_get_end',
'emscripten_stack_set_limits']

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where can I find the js library deps for this one? (I see the diff in the Asyncify JS library adds one but not all three)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The others are not needed AFAICT. Maybe they were at some point in the past.

Comment thread emcc.py

if options.embind_emit_tsd:
# TODO: Remove after #19759 is resolved.
settings.REQUIRED_EXPORTS += ['free']

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what this embind option is. Where is the dep for it that replaces this?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe its: src/embind/embind_shared.js: $getTypeName__deps: ['$readLatin1String', '__getTypeName', 'free'],

@sbc100
sbc100 merged commit f2fc713 into main Jul 12, 2023
@sbc100
sbc100 deleted the library_func_deps branch July 12, 2023 20:08
sbc100 added a commit to sbc100/emscripten that referenced this pull request Dec 4, 2023
The issue referred to in this comment was fixed in emscripten-core#19843.
sbc100 added a commit to sbc100/emscripten that referenced this pull request Dec 5, 2023
The issue referred to in this comment was fixed in emscripten-core#19843.
sbc100 added a commit to sbc100/emscripten that referenced this pull request Dec 5, 2023
The issue referred to in this comment was fixed in emscripten-core#19843.
sbc100 added a commit that referenced this pull request Dec 5, 2023
The issue referred to in this comment was fixed in #19843.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Library symbols added DEFAULT_LIBRARY_FUNCS_TO_INCLUDE don't pull in their native dependencies.

2 participants