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

Implement improvements as suggested in the last report #360

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

TerrorJack
Copy link

🚨Attention: before merging, this patch needs to be squashed with a future commit which changes where we fetch wasi-sdk binaries, now we need to fetch from a near fork of wasi-sdk.

This patch includes improvements as suggested in the last report. Most notably, it drops a very legacy version of wasi-sdk and is able to make use of latest wasi-sdk. The wasi-sdk patch makes things work out of the box for the near platform, allowing the wasi-stub hack to be dropped here as well, so no need to maintain a binaryen fork either.

Pre-flight checklist

  • I have read the Contributing Guidelines on pull requests.
  • Commit messages follow the conventional commits spec
  • If this is a code change: I have written unit tests.
  • If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

Motivation

Test Plan

Related issues/PRs

🚨Attention: before merging, this patch needs to be squashed with a
future commit which changes where we fetch wasi-sdk binaries, now we
need to fetch from a near fork of wasi-sdk.

This patch includes improvements as suggested in the last report. Most
notably, it drops a very legacy version of wasi-sdk and is able to
make use of latest wasi-sdk. The wasi-sdk patch makes things work out
of the box for the near platform, allowing the wasi-stub hack to be
dropped here as well, so no need to maintain a binaryen fork either.
} -Wl,--lto-O3 -o ${contractTarget}`,
`${CC} -mcpu=mvp -Oz -fno-strict-aliasing ${DEFS} ${INCLUDES} ${SOURCES} ${LIBS} -mexec-model=reactor -Wl,--allow-undefined -Wl,--stack-first,-z,stack-size=${
256 * 1024 * 2
} -Wl,--compress-relocations,--strip-debug -o ${contractTarget}`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

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.

2 participants