Skip to content
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

Test Windows error #648

Closed

Conversation

webmaster128
Copy link
Member

No description provided.

@webmaster128 webmaster128 marked this pull request as draft December 6, 2020 13:10
@webmaster128 webmaster128 force-pushed the singlepass-windows-error branch 2 times, most recently from be8dc4b to f299943 Compare December 6, 2020 13:37
@webmaster128 webmaster128 force-pushed the singlepass-windows-error branch from f299943 to 05d9028 Compare December 7, 2020 10:54
@webmaster128 webmaster128 force-pushed the upgrade-to-wasmer-reborn branch from cae26f3 to 231af85 Compare December 7, 2020 21:27
bors bot added a commit to wasmerio/wasmer that referenced this pull request Dec 7, 2020
1881: Add UnsupportedTarget error to compiler r=syrusakbary a=webmaster128

Closes #1878

# Description

We can error early on for system combinations that are known to not work. This gives users a much better idea why things error and allows adapting the strategy without investing lots of time in debugging.

The different behaviour is tested here:
- **Old:** _RuntimeErr { msg: "Wasmer runtime error: RuntimeError: call stack exhausted" }_
  (CI job "Contract Development / Windows (pull_request)" in CosmWasm/cosmwasm#504)
- **New:** _CompileErr { msg: "Could not compile: The target windows is not yet supported (see https://docs.wasmer.io/ecosystem/wasmer/wasmer-features)" }_
  (CI job "Contract Development / Windows (pull_request)" in CosmWasm/cosmwasm#648)

Something that is not yet clear to me is if `target` is the proper OS source information and if the `Compiler` supports cross compilation where compile evironment is different from runtime environment.

# Review

- [ ] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Simon Warta <[email protected]>
@webmaster128 webmaster128 deleted the singlepass-windows-error branch December 7, 2020 23:12
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.

1 participant