Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 28, 2020. It is now read-only.
/swift-clangPublic archive

WIP: [Swift+WASM] patches to support compiling Swift to WebAssembly#316

Draft
zhuowei wants to merge4 commits intoapple:stable
base:stable
Choose a base branch
Loading
fromswiftwasm:stable-swiftwasm

Conversation

@zhuowei
Copy link

These are the Clang changes required to cross-compile Swift programs to WebAssembly.

List of changes:

  • enable Swift calling convention for WebAssembly
  • disable exceptions by default on WebAssembly, as WASI doesn't support it
  • enable the requisite wasi define manually, since swift-llvm is too old to support the WASI triple

Seeswiftlang/swift#24684 for more information.

We're planning to upstream the first patch to upstream LLVM; the other two patches won't be needed when Swift updates its llvm/clang.

This removes the warning when attempting to compile a swiftcall function.I'm not sure whyhttps://reviews.llvm.org/D19414 didn't add this...
Too lazy to backport the Emscripten target to this version of LLVM
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@zhuowei

[8]ページ先頭

©2009-2025 Movatter.jp