Skip to content

Commit 28a9186

Browse files
committed
CI: switch Yams to static linking on Windows
Shared: 2,313,728 SwiftDriver.dll 623,616 Yams.dll Static: 2,712,064 SwiftDriver.dll This saves 225,280 bytes in the actual release build.
1 parent 9565ce3 commit 28a9186

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.ci/vs2022.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ stages:
11701170
inputs:
11711171
cmakeArgs:
11721172
-B $(Agent.BuildDirectory)/Yams
1173-
-D BUILD_SHARED_LIBS=YES
1173+
-D BUILD_SHARED_LIBS=NO
11741174
-D BUILD_TESTING=NO
11751175
-D CMAKE_BUILD_TYPE=Release
11761176
-D CMAKE_C_COMPILER=$(workspace.root)/toolchain-amd64/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/clang-cl.exe
@@ -1425,10 +1425,6 @@ stages:
14251425
inputs:
14261426
cmakeArgs:
14271427
--build $(Agent.BuildDirectory)/swift-crypto --target install
1428-
- task: CMake@1
1429-
inputs:
1430-
cmakeArgs:
1431-
--build $(Agent.BuildDirectory)/Yams --target install
14321428
- task: CMake@1
14331429
inputs:
14341430
cmakeArgs:

.github/workflows/swift-toolchain.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ jobs:
11341134
$SWIFTC = cygpath -m ${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/swiftc.exe
11351135
11361136
cmake -B ${{ github.workspace }}/BinaryCache/yams `
1137-
-D BUILD_SHARED_LIBS=YES `
1137+
-D BUILD_SHARED_LIBS=NO `
11381138
-D BUILD_TESTING=NO `
11391139
-D CMAKE_BUILD_TYPE=Release `
11401140
-D CMAKE_C_COMPILER=cl `
@@ -1414,8 +1414,6 @@ jobs:
14141414
run: cmake --build ${{ github.workspace }}/BinaryCache/swift-collections --target install
14151415
- name: Install swift-crypto
14161416
run: cmake --build ${{ github.workspace }}/BinaryCache/swift-crypto --target install
1417-
- name: Install Yams
1418-
run: cmake --build ${{ github.workspace }}/BinaryCache/yams --target install
14191417
- name: Install swift-llbuild
14201418
run: cmake --build ${{ github.workspace }}/BinaryCache/swift-llbuild --target install
14211419
- name: Install swift-system

0 commit comments

Comments
 (0)