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

cartonを入れずにcartonを使う #21

Closed
omochi opened this issue Apr 4, 2024 · 3 comments
Closed

cartonを入れずにcartonを使う #21

omochi opened this issue Apr 4, 2024 · 3 comments

Comments

@omochi
Copy link
Owner

omochi commented Apr 4, 2024

@kateinoigakukun 先生が教えてくれた
https://discord.com/channels/291054398077927425/383442648012423179/1225459174167543928

結論として 5.9.2

export TOOLCHAINS=org.swiftwasm.202439

swift build --triple wasm32-unknown-wasi \
  --build-tests \
  -Xswiftc -static-stdlib \
  -Xswiftc -Xclang-linker -Xswiftc -mexec-model=reactor \
  -Xlinker --export-if-defined=main \
  --disable-build-manifest-caching

CartonFrontend test --prebuilt-test-bundle-path .build/debug/swift-reactPackageTests.wasm --environment browser

4/2 snapshot

export TOOLCHAINS=org.swift.59202404021a

swift build --experimental-swift-sdk wasm32-unknown-wasi \
  --build-tests \
  -Xswiftc -static-stdlib \
  -Xswiftc -Xclang-linker -Xswiftc -mexec-model=reactor \
  -Xlinker --export-if-defined=__main_argc_argv \
  --disable-build-manifest-caching
  
CartonFrontend test --prebuilt-test-bundle-path .build/debug/swift-reactPackageTests.wasm --environment browser

Swift SDK

swift experimental-sdk install
https://github.com/swiftwasm/swift/releases/download/swift-wasm-DEVELOPMENT-SNAPSHOT-2024-04-03-a/swift-wasm-DEVELOPMENT-SNAPSHOT-2024-04-03-a-macos_arm64.artifactbundle.zip

https://github.com/swiftwasm/swift/releases/tag/swift-wasm-DEVELOPMENT-SNAPSHOT-2024-04-03-a

@omochi
Copy link
Owner Author

omochi commented Apr 4, 2024

4/2だとダメらしい
swiftwasm/swift#5574

@omochi
Copy link
Owner Author

omochi commented Apr 4, 2024

爆速で直してくれた swiftwasm/carton#426

@omochi
Copy link
Owner Author

omochi commented Apr 6, 2024

できた
とりあえず bin/test でブラウザでテストが走るようになった

@omochi omochi closed this as completed Apr 6, 2024
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

No branches or pull requests

1 participant