Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify linker flag handling #9502

Merged
merged 1 commit into from
Sep 26, 2019
Merged

Simplify linker flag handling #9502

merged 1 commit into from
Sep 26, 2019

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Sep 25, 2019

This is a followup to #9475. It seems that whitelist of acceptable
link flags is preferable to a black list.

Also delay linker flag processing until after shared.reconfigure_cache() since the
default libraries paths can be effected by user settings.

@sbc100 sbc100 requested a review from kripken September 25, 2019 21:29
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

This does look a little safer to me, thanks. I admit though that I'm not 100% sure which of the two approaches is better, so if you feel strongly the other way, I could be convinced. But lgtm otherwise.

emcc.py Outdated
return False

def add_link_flag(i, f):
# Filter out libraries that musl includes in libc itself, or with we
Copy link
Member

Choose a reason for hiding this comment

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

with => which (I think?)

@sbc100 sbc100 force-pushed the delay_link_flag_processing branch from e7a7418 to 4fb7402 Compare September 25, 2019 21:56
The only reason this is separate is because libc is a bc file
under fastcomp.
@sbc100 sbc100 force-pushed the delay_link_flag_processing branch from f47c2a0 to 84cae5e Compare September 26, 2019 21:31
@sbc100 sbc100 merged commit 4903db2 into incoming Sep 26, 2019
@sbc100 sbc100 deleted the delay_link_flag_processing branch September 26, 2019 23:56
belraquib pushed a commit to belraquib/emscripten that referenced this pull request Dec 23, 2020
The only reason this is separate is because libc is a bc file
under fastcomp.
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