Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pyodide_build/pywasmcross.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ def replay_genargs_handle_linker_opts(arg: str) -> str | None:
# wasm-ld does not recognize some link flags
"--sort-common",
"--as-needed",
# macOS-specific linker flags that wasm-ld doesn't understand
"-headerpad_max_install_names",
"-dead_strip_dylibs",
]:
Copy link
Member

Choose a reason for hiding this comment

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

It is not related to this PR, but I think we can do some micro optimization here:

  1. Let's change the list to a set for fast check
  2. Initialize the set before for loop

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed, that makes sense. I'll take that up in a new PR!

continue

Expand Down