Skip to content

Skip .weak after .type - #1243

Closed
tsavola wants to merge 1 commit into
WebAssembly:masterfrom
tsavola:master
Closed

Skip .weak after .type#1243
tsavola wants to merge 1 commit into
WebAssembly:masterfrom
tsavola:master

Conversation

@tsavola

@tsavola tsavola commented Oct 24, 2017

Copy link
Copy Markdown

No description provided.

@kripken

kripken commented Oct 24, 2017

Copy link
Copy Markdown
Member

Note that s2wasm will be deprecated eventually, as the llvm wasm backend will eventually emit a binary directly. But still worth fixing issues of course.

Do you have a testcase showing the problem here that we could add to the test suite?

@tsavola

tsavola commented Oct 24, 2017

Copy link
Copy Markdown
Author

I get weak references when using libcxx and assigning something (traditional function or lambda) to a std::function.

It seems binaryen's test suite doesn't run the hello_libcxx test. It probably would be a large undertaking to get libcxx-dependent tests to run?

@tsavola

tsavola commented Oct 24, 2017

Copy link
Copy Markdown
Author
#include <functional>

static void dummy() {}

int main()
{
  std::function<void()> f = dummy;
  return 0;
}

https://gist.github.com/tsavola/f0b36840ccf2b0639591aa7f30750498

@dschuff

dschuff commented Oct 24, 2017

Copy link
Copy Markdown
Member

We do run the emscripten testsuite (at least the test_core part) against upstream LLVM/s2wasm on our bot (see e.g. https://wasm-stat.us/builders/linux/builds/25522/steps/Execute%20emscripten%20testsuite%20%28emwasm%29/logs/stdio). But it doesn't look like that actually builds hello_libcxx, that seems odd.

@axic

axic commented Jul 25, 2018

Copy link
Copy Markdown
Contributor

I think this PR can be closed since #1607 s2wasm has been removed.

@kripken kripken closed this Jul 25, 2018
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.

4 participants