File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 os : [macOS-10.15]
99 include :
1010 - os : macOS-10.15
11- toolchain : https://github.com/swiftwasm/swift/releases/download/swift-wasm-DEVELOPMENT-SNAPSHOT-2020-03-08 -a/swift-wasm-DEVELOPMENT-SNAPSHOT-2020-03-08 -a-osx.tar.gz
11+ toolchain : https://github.com/swiftwasm/swift/releases/download/swift-wasm-DEVELOPMENT-SNAPSHOT-2020-04-27 -a/swift-wasm-DEVELOPMENT-SNAPSHOT-2020-04-27 -a-osx.tar.gz
1212 runs-on : ${{ matrix.os }}
1313 steps :
1414 - name : Checkout
Original file line number Diff line number Diff line change 1- wasm-DEVELOPMENT-SNAPSHOT-2020-03-08 -a
1+ wasm-DEVELOPMENT-SNAPSHOT-2020-04-27 -a
Original file line number Diff line number Diff line change 1- // swift-tools-version:5.2
1+ // swift-tools-version:5.3
22
33import PackageDescription
44
@@ -12,22 +12,28 @@ let package = Package(
1212 name: " JavaScriptKit " ,
1313 dependencies: [ " _CJavaScriptKit " ] ,
1414 linkerSettings: [
15- . unsafeFlags( [
16- " -Xlinker " ,
17- " --export=swjs_call_host_function " ,
18- " -Xlinker " ,
19- " --export=swjs_prepare_host_function_call " ,
20- " -Xlinker " ,
21- " --export=swjs_cleanup_host_function_call "
22- ] )
15+ . unsafeFlags(
16+ [
17+ " -Xlinker " ,
18+ " --export=swjs_call_host_function " ,
19+ " -Xlinker " ,
20+ " --export=swjs_prepare_host_function_call " ,
21+ " -Xlinker " ,
22+ " --export=swjs_cleanup_host_function_call "
23+ ] ,
24+ . when( platforms: [ . wasi] )
25+ )
2326 ] ) ,
2427 . target(
2528 name: " _CJavaScriptKit " ,
2629 linkerSettings: [
27- . unsafeFlags( [
28- " -Xlinker " ,
29- " --allow-undefined " ,
30- ] )
30+ . unsafeFlags(
31+ [
32+ " -Xlinker " ,
33+ " --allow-undefined " ,
34+ ] ,
35+ . when( platforms: [ . wasi] )
36+ )
3137 ] ) ,
3238 . testTarget(
3339 name: " JavaScriptKitTests " ,
You can’t perform that action at this time.
0 commit comments