-
Notifications
You must be signed in to change notification settings - Fork 17.2k
[lldb][test] Add support for building Wasm test inferiors #192872
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| USE_SYSTEM_STDLIB = 1 | ||
|
|
||
| ifneq "$(RESOURCE_DIR)" "" | ||
| ARCH_CFLAGS += -resource-dir $(RESOURCE_DIR) | ||
| endif | ||
|
|
||
| ARCH_CXXFLAGS += \ | ||
| -fno-exceptions | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this a global thing like WASM in general doesn't support this or is this something connected to the particular SDK being used at the moment? Either is fine, just wondering.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The WASI SDK I'm iterating with didn't have C++ exception support, but it seems like it was very recently added to WASI so we may be able to start using it in the (near) future: WebAssembly/wasi-sdk#565
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not all runtimes have support for exception handling BTW. IIRC C++ exception are compiled down by Clang to Wasm exceptions? For WasmKit we would have to merge this one first swiftwasm/WasmKit#311 |
||
|
|
||
| ARCH_LDFLAGS += \ | ||
| $(if $(RESOURCE_DIR),-resource-dir $(RESOURCE_DIR)) \ | ||
| -Wl,--export-all \ | ||
| -Wl,--no-entry \ | ||
| -Wl,--allow-undefined | ||
Uh oh!
There was an error while loading. Please reload this page.