Skip to content

Commit e3e3262

Browse files
Steelskincompnerd
authored andcommitted
Update swift-crypto to 3.12.5
This also modifies the build order to use the same build of ASN1 for swift-crypto rather than vendoring it automatically for the swift-crypto build.
1 parent ffe4867 commit e3e3262

File tree

3 files changed

+36
-29
lines changed

3 files changed

+36
-29
lines changed

.github/workflows/build-toolchain.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ jobs:
268268
swift_corelibs_foundation_revision=refs/tags/${{ inputs.swift_tag }}
269269
swift_corelibs_libdispatch_revision=refs/tags/${{ inputs.swift_tag }}
270270
swift_corelibs_xctest_revision=refs/tags/${{ inputs.swift_tag }}
271-
swift_crypto_revision=refs/tags/3.0.0
271+
swift_crypto_revision=refs/tags/3.12.5
272272
swift_driver_revision=refs/tags/${{ inputs.swift_tag }}
273273
swift_experimental_string_processing_revision=refs/tags/${{ inputs.swift_tag }}
274274
swift_format_revision=refs/heads/main

.github/workflows/swift-toolchain.yml

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3768,19 +3768,45 @@ jobs:
37683768
- name: Build swift-collections
37693769
run: cmake --build ${{ github.workspace }}/BinaryCache/swift-collections
37703770

3771+
- name: Configure swift-asn1
3772+
run: |
3773+
# Workaround CMake 3.20 issue
3774+
$CLANG_CL = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr/bin/clang-cl.exe
3775+
$SWIFTC = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr/bin/swiftc.exe
3776+
3777+
cmake -B ${{ github.workspace }}/BinaryCache/swift-asn1 `
3778+
-D BUILD_SHARED_LIBS=NO `
3779+
-D CMAKE_BUILD_TYPE=Release `
3780+
-D CMAKE_Swift_COMPILER=${SWIFTC} `
3781+
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple }} `
3782+
-D CMAKE_Swift_COMPILER_WORKS=YES `
3783+
-D CMAKE_Swift_FLAGS="-sdk ${env:SDKROOT} ${{ inputs.CMAKE_Swift_FLAGS }}" `
3784+
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
3785+
${{ matrix.cmake_linker_flags }} `
3786+
-D CMAKE_SYSTEM_NAME=Windows `
3787+
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
3788+
-G Ninja `
3789+
-S ${{ github.workspace }}/SourceCache/swift-asn1
3790+
- name: Build swift-asn1
3791+
run: cmake --build ${{ github.workspace }}/BinaryCache/swift-asn1
3792+
37713793
- name: Configure swift-crypto
37723794
run: |
37733795
# Workaround CMake 3.20 issue
3796+
$CLANG_CL = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr/bin/clang-cl.exe
37743797
$SWIFTC = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr/bin/swiftc.exe
37753798
37763799
cmake -B ${{ github.workspace }}/BinaryCache/swift-crypto `
37773800
-D BUILD_SHARED_LIBS=NO `
37783801
-D BUILD_TESTING=NO `
37793802
-D CMAKE_BUILD_TYPE=Release `
3780-
-D CMAKE_C_COMPILER=cl `
3803+
-D CMAKE_ASM_COMPILER=${CLANG_CL} `
3804+
-D CMAKE_ASM_FLAGS="--target=${{ matrix.triple }}" `
3805+
-D CMAKE_ASM_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreadedDLL="/MD" `
3806+
-D CMAKE_C_COMPILER=${CLANG_CL} `
37813807
-D CMAKE_C_COMPILER_TARGET=${{ matrix.triple }} `
37823808
-D CMAKE_C_FLAGS="${{ inputs.WINDOWS_CMAKE_C_FLAGS }}" `
3783-
-D CMAKE_CXX_COMPILER=cl `
3809+
-D CMAKE_CXX_COMPILER=${CLANG_CL} `
37843810
-D CMAKE_CXX_COMPILER_TARGET=${{ matrix.triple }} `
37853811
-D CMAKE_CXX_FLAGS="${{ inputs.WINDOWS_CMAKE_CXX_FLAGS }}" `
37863812
-D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr `
@@ -3793,23 +3819,26 @@ jobs:
37933819
-D CMAKE_SYSTEM_NAME=Windows `
37943820
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
37953821
-G Ninja `
3796-
-S ${{ github.workspace }}/SourceCache/swift-crypto
3822+
-S ${{ github.workspace }}/SourceCache/swift-crypto `
3823+
-D SwiftASN1_DIR=${{ github.workspace }}/BinaryCache/swift-asn1/cmake/modules
3824+
37973825
- name: Build swift-crypto
37983826
run: cmake --build ${{ github.workspace }}/BinaryCache/swift-crypto
37993827

38003828
- name: Configure swift-llbuild
38013829
run: |
38023830
# Workaround CMake 3.20 issue
3831+
$CLANG_CL = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr/bin/clang-cl.exe
38033832
$SWIFTC = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr/bin/swiftc.exe
38043833
38053834
cmake -B ${{ github.workspace }}/BinaryCache/swift-llbuild `
38063835
-D BUILD_SHARED_LIBS=YES `
38073836
-D BUILD_TESTING=NO `
38083837
-D CMAKE_BUILD_TYPE=Release `
3809-
-D CMAKE_C_COMPILER=cl `
3838+
-D CMAKE_C_COMPILER=${CLANG_CL} `
38103839
-D CMAKE_C_COMPILER_TARGET=${{ matrix.triple }} `
38113840
-D CMAKE_C_FLAGS="${{ inputs.WINDOWS_CMAKE_C_FLAGS }}" `
3812-
-D CMAKE_CXX_COMPILER=cl `
3841+
-D CMAKE_CXX_COMPILER=${CLANG_CL} `
38133842
-D CMAKE_CXX_COMPILER_TARGET=${{ matrix.triple }} `
38143843
-D CMAKE_CXX_FLAGS="${{ inputs.WINDOWS_CMAKE_CXX_FLAGS }}" `
38153844
-D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/BuildRoot/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr `
@@ -3928,28 +3957,6 @@ jobs:
39283957
- name: Build swift-driver
39293958
run: cmake --build ${{ github.workspace }}/BinaryCache/swift-driver
39303959

3931-
- name: Configure swift-asn1
3932-
run: |
3933-
# Workaround CMake 3.20 issue
3934-
$CLANG_CL = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr/bin/clang-cl.exe
3935-
$SWIFTC = cygpath -m ${{ github.workspace }}/BinaryCache/Library/Developer/Toolchains/${{ inputs.swift_version }}+Asserts/usr/bin/swiftc.exe
3936-
3937-
cmake -B ${{ github.workspace }}/BinaryCache/swift-asn1 `
3938-
-D BUILD_SHARED_LIBS=NO `
3939-
-D CMAKE_BUILD_TYPE=Release `
3940-
-D CMAKE_Swift_COMPILER=${SWIFTC} `
3941-
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple }} `
3942-
-D CMAKE_Swift_COMPILER_WORKS=YES `
3943-
-D CMAKE_Swift_FLAGS="-sdk ${env:SDKROOT} ${{ inputs.CMAKE_Swift_FLAGS }}" `
3944-
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
3945-
${{ matrix.cmake_linker_flags }} `
3946-
-D CMAKE_SYSTEM_NAME=Windows `
3947-
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
3948-
-G Ninja `
3949-
-S ${{ github.workspace }}/SourceCache/swift-asn1
3950-
- name: Build swift-asn1
3951-
run: cmake --build ${{ github.workspace }}/BinaryCache/swift-asn1
3952-
39533960
- name: Configure swift-certificates
39543961
run: |
39553962
# Workaround CMake 3.20 issue

default.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<project remote="github" name="swiftlang/swift-corelibs-libdispatch" path="swift-corelibs-libdispatch" />
2121
<project remote="github" name="swiftlang/swift-corelibs-foundation" path="swift-corelibs-foundation" />
2222
<project remote="github" name="swiftlang/swift-corelibs-xctest" path="swift-corelibs-xctest" />
23-
<project remote="github" name="apple/swift-crypto" path="swift-crypto" revision="refs/tags/3.12.3" />
23+
<project remote="github" name="apple/swift-crypto" path="swift-crypto" revision="refs/tags/3.12.5" />
2424
<project remote="github" name="swiftlang/swift-docc" path="swift-docc" />
2525
<project remote="github" name="swiftlang/swift-docc-plugin" path="swift-docc-plugin" revision="refs/tags/1.0.0" />
2626
<project remote="github" name="swiftlang/swift-docc-render" path="swift-docc-render" />

0 commit comments

Comments
 (0)