Closed omochi closed 8 months ago
@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
4/2だとダメらしい https://github.com/swiftwasm/swift/issues/5574
爆速で直してくれた https://github.com/swiftwasm/carton/pull/426
できた とりあえず bin/test でブラウザでテストが走るようになった
bin/test
@kateinoigakukun 先生が教えてくれた https://discord.com/channels/291054398077927425/383442648012423179/1225459174167543928
結論として 5.9.2
4/2 snapshot
Swift SDK
https://github.com/swiftwasm/swift/releases/tag/swift-wasm-DEVELOPMENT-SNAPSHOT-2024-04-03-a