Skip to content

Commit

Permalink
Merge pull request #98 from omochi/use-sss-option
Browse files Browse the repository at this point in the history
use --static-swift-stdlib option
  • Loading branch information
omochi authored May 5, 2024
2 parents 2c40d5d + 3032a21 commit 1b1c0f5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- run: >
swift build --swift-sdk wasm32-unknown-wasi
--build-tests
-Xswiftc -static-stdlib
--static-swift-stdlib
-Xswiftc -Xclang-linker -Xswiftc -mexec-model=reactor
-Xlinker --export-if-defined=__main_argc_argv
--disable-build-manifest-caching
Expand Down
2 changes: 1 addition & 1 deletion BrowserTests/bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -x

swift build --swift-sdk wasm32-unknown-wasi \
--disable-build-manifest-caching \
-Xswiftc -static-stdlib \
--static-swift-stdlib \
-Xswiftc -Xclang-linker -Xswiftc -mexec-model=reactor \
-Xlinker --export-if-defined=__main_argc_argv \
-Xlinker --stack-first \
Expand Down
4 changes: 2 additions & 2 deletions bin/test
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ set -x

swift build --swift-sdk wasm32-unknown-wasi \
--build-tests \
-Xswiftc -static-stdlib \
--disable-build-manifest-caching \
--static-swift-stdlib \
-Xswiftc -Xclang-linker -Xswiftc -mexec-model=reactor \
-Xlinker --export-if-defined=__main_argc_argv \
--disable-build-manifest-caching \
-Xlinker --stack-first \
-Xlinker --global-base=1048576 \
-Xlinker -z -Xlinker stack-size=1048576
Expand Down
2 changes: 1 addition & 1 deletion docs/configure.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ $ swift sdk install <SDK download URL>
```sh
$ swift build --swift-sdk wasm32-unknown-wasi \
--disable-build-manifest-caching \
-Xswiftc -static-stdlib \
--static-swift-stdlib \
-Xswiftc -Xclang-linker -Xswiftc -mexec-model=reactor \
-Xlinker --export-if-defined=__main_argc_argv \
-Xlinker --stack-first \
Expand Down

0 comments on commit 1b1c0f5

Please sign in to comment.