Skip to content

Support excluding system libraries from EMCC_FORCE_STDLIBS - #8821

Merged
quantum5 merged 2 commits into
emscripten-core:incomingfrom
quantum5:system-libs-never-force
Jun 18, 2019
Merged

quantum5 merged 2 commits into
emscripten-core:incomingfrom
quantum5:system-libs-never-force

Conversation

@quantum5

Copy link
Copy Markdown
Member

This PR also excludes sanitizer libraries from EMCC_FORCE_STDLIBS.

@sbc100 sbc100 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice!

Comment thread tools/system_libs.py Outdated
force = os.environ.get('EMCC_FORCE_STDLIBS')
if force == '1':
force = ','.join(system_libs_map.keys())
force = ','.join(key for key, value in system_libs_map.items() if not value.never_force)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

How about for name, lib in .. so its clear we are building a list of library names?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why not use name rather than key too? lgtm either way, this is micro nit.

@quantum5
quantum5 merged commit f438aed into emscripten-core:incoming Jun 18, 2019
@quantum5
quantum5 deleted the system-libs-never-force branch June 18, 2019 20:14
belraquib pushed a commit to belraquib/emscripten that referenced this pull request Dec 23, 2020
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.

2 participants