Skip to content

Trouble with emcc 6.0.0 from #25930 #27403

Description

@hoodmane

I'm not 100% sure what the problem is but emcc 6.0.0 works fine for me if I revert #25930. The problem is that -Bstatic is passed when I'm trying to link a static library.

I think the problem is that the condition here is wrong:

  if settings.FAKE_DYLIBS or (not settings.MAIN_MODULE and not settings.SIDE_MODULE):
    cmd.append('-Bstatic')
  else:
    # wasm-ld still defaults to static linking by default. If that ever changes, we can remove this line.
    cmd.append('-Bdynamic')

if settings.FAKE_DYLIBS or (not settings.MAIN_MODULE and not settings.SIDE_MODULE):
cmd.append('-Bstatic')
else:
# wasm-ld still defaults to static linking by default. If that ever changes, we can remove this line.
cmd.append('-Bdynamic')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions