Skip to content

LTO of mixed wasm & bitcode files not working when linking with WASM_OBJECT_FILES=0 #8599

Closed

Description

@aardappel

Using these flags for both compile and link invocations of emcc: --llvm-opts 3 --llvm-lto 1 -s WASM_OBJECT_FILES=0
And then passing in a .o containing wasm on emcc's link step gives the following warning: emcc:WARNING: mywasm.o is not a valid input file
It's just a warning, it still continues to produce a wasm module, even though the main() is in the above .o file :) I haven't investigated this further.

maybe WASM_OBJECT_FILES=0 could just be ignored in the link step such that mixed use is still accepted.

cc @sbc100

Activity

  1. added 3 commits that reference this issue on May 13, 2019
    d05e3ce
    d92e429
    993c990
  2. added a commit that references this issue on May 16, 2019
    fecd944
  3. added a commit that references this issue on May 21, 2019
    4aa04c5
  4. added a commit that references this issue on Dec 23, 2020
    a9bd24f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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