Skip to content

[android] swift-collections fails to build with CMP0157=NEW #227

@weliveindetail

Description

@weliveindetail

Background

This issue came up recently when building the Swift toolchain binary cache 403 (swift-corelibs-foundation for Android arm64). The workaround was to switch cmake_policy(SET CMP0157 NEW) to OLD in swift-corelibs-foundation\CMakeLists.txt.

Repro

We can reproduce the exact same issue with swift-collections alone, when building with the current mainline swiftc.exe. It disappears when switching to the latest prebuilt toolchain (i.e https://github.com/thebrowsercompany/swift-build/releases/tag/20250116.0).

build.bat

Diff of the build script, that makes it work again:

 @echo off

 git clone --depth 1 --branch 1.1.4 https://github.com/apple/swift-collections.git

 cmake --version
 ninja --version

-set SWIFTC=S:/a/5/bin/swiftc.exe
+set SWIFTC=%userprofile%/AppData/Local/Programs/Swift/Toolchains/0.0.0+Asserts/usr/bin/swiftc.exe
 %SWIFTC% --version

 cmake -B repro -S swift-collections -G Ninja -D CMAKE_ANDROID_API=28 -D CMAKE_ANDROID_ARCH_ABI=arm64-v8a -D CMAKE_ANDROID_NDK=S:/a/android-ndk-r26b -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -D CMAKE_C_COMPILER_TARGET=aarch64-unknown-linux-android28 -D CMAKE_C_COMPILER_WORKS=YES -D CMAKE_C_FLAGS=--sysroot=S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/sysroot -D CMAKE_CXX_COMPILER=S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -D CMAKE_CXX_COMPILER_TARGET=aarch64-unknown-linux-android28 -D CMAKE_EXE_LINKER_FLAGS=--ld-path=S:/a/5/bin/ld.lld -D CMAKE_INSTALL_PREFIX=S:/a/arm64/Android.platform/Developer/SDKs/Android.sdk/usr -D CMAKE_NINJA_FORCE_RESPONSE_FILE=YES -D CMAKE_SHARED_LINKER_FLAGS=--ld-path=S:/a/5/bin/ld.lld -D CMAKE_Swift_COMPILER=%SWIFTC% -D CMAKE_Swift_COMPILER_TARGET=aarch64-unknown-linux-android -D CMAKE_Swift_COMPILER_WORKS=YES -D CMAKE_Swift_FLAGS="-sdk S:/a/arm64/Android.platform/Developer/SDKs/Android.sdk -sysroot S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/sysroot -Xclang-linker -target -Xclang-linker aarch64-unknown-linux-android28 -Xclang-linker --sysroot -Xclang-linker S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/sysroot -Xclang-linker -resource-dir -Xclang-linker S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/lib/clang/17 -gnone" -D CMAKE_Swift_FLAGS_RELEASE=-O -D CMAKE_Swift_FLAGS_RELWITHDEBINFO=-O -D CMAKE_SYSTEM_NAME=Android -D CMAKE_SYSTEM_PROCESSOR=aarch64 -D CMAKE_POLICY_DEFAULT_CMP0157=NEW

 ninja -C repro lib\libInternalCollectionsUtilities.a

build.log

Respective diff of the log:

 > build.bat
 cmake version 3.29.5-msvc4

 CMake suite maintained and supported by Kitware (kitware.com/cmake).
 1.12.1
-<unknown>:0: warning: using (deprecated) legacy driver, Swift installation does not contain swift-driver at: 'S:\a\5\bin\swift-driver-new.exe'
-Swift version 6.2-dev (LLVM bb5a46203470a96, Swift dc495396ce7445a)
+compnerd.org Swift version 6.2-dev (LLVM 9eb07c4c3dec14f, Swift 29bcd2caa04dd76)
 Target: x86_64-unknown-windows-msvc
 -- Android: Targeting API '28' with architecture 'arm64', ABI 'arm64-v8a', and processor 'aarch64'
 -- Android: Selected unified Clang toolchain
 -- The C compiler identification is Clang 17.0.2
 -- The Swift compiler identification is Apple 6.2
-<unknown>:0: warning: using (deprecated) legacy driver, Swift installation does not contain swift-driver at: 'S:\a\5\bin\swift-driver-new.exe'
 -- Detecting C compiler ABI info
 -- Detecting C compiler ABI info - done
 -- Check for working C compiler: S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe - skipped
 -- Detecting C compile features
 -- Detecting C compile features - done
 -- Configuring done (1.0s)
 -- Generating done (0.0s)
 CMake Warning:
   Manually-specified variables were not used by the project:

     CMAKE_NINJA_FORCE_RESPONSE_FILE


 -- Build files have been written to: S:/brwsrcmp/05/CMP0157/repro
 ninja: Entering directory `repro'
-[1/2] Building Swift object swift/InternalCollectionsUtilities.swiftmodule Sources/InternalCollectionsUtilities/CMakeFiles/Inte...edCollection.swift.o Sources/InternalCollectionsUtilities/CMakeFiles/InternalCollectionsUtilities.dir/_UniqueCollection.swift.

-<unknown>:0: warning: using (deprecated) legacy driver, Swift installation does not contain swift-driver at: 'S:\a\5\bin\swift-driver-new.exe'
-<unknown>:0: warning: option '-incremental' is only supported in swift-driver
 [2/2] Linking Swift static library lib\libInternalCollectionsUtilities.a
-FAILED: lib/libInternalCollectionsUtilities.a
-C:\WINDOWS\system32\cmd.exe /C "cd . && S:\a\5\bin\swiftc.exe -target aarch64-unknown-linux-android -emit-library -static -o lib\libInternalCollectionsUtilities.a @CMakeFiles\InternalCollectionsUtilities.rsp  && cd ."
-<unknown>:0: warning: using (deprecated) legacy driver, Swift installation does not contain swift-driver at: 'S:\a\5\bin\swift-driver-new.exe'
-<unknown>:0: error: no such file or directory: 'Sources/InternalCollectionsUtilities/CMakeFiles/InternalCollectionsUtilities.dir/autogenerated/Debugging.swift.o'
-<unknown>:0: error: no such file or directory: 'Sources/InternalCollectionsUtilities/CMakeFiles/InternalCollectionsUtilities.dir/autogenerated/Descriptions.swift.o'
-<unknown>:0: error: no such file or directory: 'Sources/InternalCollectionsUtilities/CMakeFiles/InternalCollectionsUtilities.dir/autogenerated/RandomAccessCollection+Offsets.swift.o'
...
-ninja: build stopped: subcommand failed.

Build directory

Attaching a zip with the build directory contents: repro.zip

Here is a reduced diff of the directory contents. PLEASE NOTE that this one is inverted: red worked, green failed!

diff --git a/CMakeCache.txt b/CMakeCache.txt
index 700e881..cc52a17 100644
--- a/CMakeCache.txt
+++ b/CMakeCache.txt
@@ -205,21 +205,21 @@ CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
 //Path to a program.
 CMAKE_STRIP:FILEPATH=S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-strip.exe
 
 //No help, variable specified on the command line.
 CMAKE_SYSTEM_NAME:UNINITIALIZED=Android
 
 //No help, variable specified on the command line.
 CMAKE_SYSTEM_PROCESSOR:UNINITIALIZED=aarch64
 
 //Swift compiler
-CMAKE_Swift_COMPILER:STRING=C:/Users/ez/AppData/Local/Programs/Swift/Toolchains/0.0.0+Asserts/usr/bin/swiftc.exe
+CMAKE_Swift_COMPILER:STRING=S:/a/5/bin/swiftc.exe
 
 //No help, variable specified on the command line.
 CMAKE_Swift_COMPILER_TARGET:UNINITIALIZED=aarch64-unknown-linux-android
 
 //Swift Compiler Flags during all build types.
 CMAKE_Swift_FLAGS:STRING=-sdk S:/a/arm64/Android.platform/Developer/SDKs/Android.sdk -sysroot S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/sysroot -Xclang-linker -target -Xclang-linker aarch64-unknown-linux-android28 -Xclang-linker --sysroot -Xclang-linker S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/sysroot -Xclang-linker -resource-dir -Xclang-linker S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/lib/clang/17 -gnone
 
 //Swift Compiler Flags during DEBUG builds.
 CMAKE_Swift_FLAGS_DEBUG:STRING=-Onone -g
 
diff --git a/CMakeFiles/3.29.5-msvc4/CMakeDetermineCompilerABI_C.bin b/CMakeFiles/3.29.5-msvc4/CMakeDetermineCompilerABI_C.bin
index 1bd9a41..bcf6ed2 100644
Binary files a/CMakeFiles/3.29.5-msvc4/CMakeDetermineCompilerABI_C.bin and b/CMakeFiles/3.29.5-msvc4/CMakeDetermineCompilerABI_C.bin differ
diff --git a/CMakeFiles/3.29.5-msvc4/CMakeSwiftCompiler.cmake b/CMakeFiles/3.29.5-msvc4/CMakeSwiftCompiler.cmake
index 04f02b4..64f2829 100644
--- a/CMakeFiles/3.29.5-msvc4/CMakeSwiftCompiler.cmake
+++ b/CMakeFiles/3.29.5-msvc4/CMakeSwiftCompiler.cmake
@@ -1,18 +1,18 @@
 # Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 # file Copyright.txt or https://cmake.org/licensing for details.
 
-set(CMAKE_Swift_COMPILER "C:/Users/ez/AppData/Local/Programs/Swift/Toolchains/0.0.0+Asserts/usr/bin/swiftc.exe")
+set(CMAKE_Swift_COMPILER "S:/a/5/bin/swiftc.exe")
 set(CMAKE_Swift_COMPILER_ID "Apple")
 set(CMAKE_Swift_COMPILER_VERSION "6.2")
 
 set(CMAKE_Swift_COMPILER_LOADED 1)
 set(CMAKE_Swift_COMPILER_WORKS "YES")
 
 set(CMAKE_Swift_COMPILER_ENV_VAR "SWIFTC")
 
 set(CMAKE_Swift_COMPILER_ID_RUN 1)
 set(CMAKE_Swift_SOURCE_FILE_EXTENSIONS swift)
 
-set(CMAKE_Swift_COMPILER_USE_OLD_DRIVER "FALSE")
+set(CMAKE_Swift_COMPILER_USE_OLD_DRIVER "TRUE")
 
 set(CMAKE_Swift_IMPLICIT_INCLUDE_DIRECTORIES "")
diff --git a/CMakeFiles/3.29.5-msvc4/CompilerIdSwift/main.exe b/CMakeFiles/3.29.5-msvc4/CompilerIdSwift/main.exe
deleted file mode 100644
index 046ce34..0000000
Binary files a/CMakeFiles/3.29.5-msvc4/CompilerIdSwift/main.exe and /dev/null differ
diff --git a/CMakeFiles/3.29.5-msvc4/CompilerIdSwift/main.exp b/CMakeFiles/3.29.5-msvc4/CompilerIdSwift/main.exp
index dca40e8..9809a66 100644
Binary files a/CMakeFiles/3.29.5-msvc4/CompilerIdSwift/main.exp and b/CMakeFiles/3.29.5-msvc4/CompilerIdSwift/main.exp differ
diff --git a/CMakeFiles/3.29.5-msvc4/CompilerIdSwift/main.lib b/CMakeFiles/3.29.5-msvc4/CompilerIdSwift/main.lib
index fd2b6d1..41f0ed4 100644
Binary files a/CMakeFiles/3.29.5-msvc4/CompilerIdSwift/main.lib and b/CMakeFiles/3.29.5-msvc4/CompilerIdSwift/main.lib differ
diff --git a/CMakeFiles/CMakeConfigureLog.yaml b/CMakeFiles/CMakeConfigureLog.yaml
index dacc738..c736c3d 100644
--- a/CMakeFiles/CMakeConfigureLog.yaml
+++ b/CMakeFiles/CMakeConfigureLog.yaml
@@ -33,134 +33,138 @@ events:
       
   -
     kind: "message-v1"
     backtrace:
       - "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:17 (message)"
       - "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:64 (__determine_compiler_id_test)"
       - "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.29/Modules/CMakeDetermineSwiftCompiler.cmake:67 (CMAKE_DETERMINE_COMPILER_ID)"
       - "CMakeLists.txt:15 (project)"
     message: |
       Compiling the Swift compiler identification source file "CompilerId/main.swift" failed.
-      Compiler: C:/Users/ez/AppData/Local/Programs/Swift/Toolchains/0.0.0+Asserts/usr/bin/swiftc.exe 
+      Compiler: S:/a/5/bin/swiftc.exe 
       Build flags: -sdk;S:/a/arm64/Android.platform/Developer/SDKs/Android.sdk;-sysroot;S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/sysroot;-Xclang-linker;-target;-Xclang-linker;aarch64-unknown-linux-android28;-Xclang-linker;--sysroot;-Xclang-linker;S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/sysroot;-Xclang-linker;-resource-dir;-Xclang-linker;S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/lib/clang/17;-gnone
       Id flags:  
       
       The output was:
       1
-      <unknown>:0: error: unable to load standard library for target 'x86_64-unknown-windows-msvc'
+      <unknown>:0: warning: using (deprecated) legacy driver, Swift installation does not contain swift-driver at: 'S:\\a\\5\\bin\\swift-driver-new.exe'
+      clang: error: no such file or directory: 'S:/a/arm64/Android.platform/Developer/SDKs/Android.sdk\\usr\\lib\\swift\\windows\\x86_64\\swiftrt.obj'
+      <unknown>:0: error: link command failed with exit code 1 (use -v to see invocation)
       
       
   -
     kind: "message-v1"
     backtrace:
       - "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:17 (message)"
       - "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:64 (__determine_compiler_id_test)"
       - "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.29/Modules/CMakeDetermineSwiftCompiler.cmake:67 (CMAKE_DETERMINE_COMPILER_ID)"
       - "CMakeLists.txt:15 (project)"
     message: |
       Compiling the Swift compiler identification source file "CompilerId/main.swift" succeeded.
-      Compiler: C:/Users/ez/AppData/Local/Programs/Swift/Toolchains/0.0.0+Asserts/usr/bin/swiftc.exe 
+      Compiler: S:/a/5/bin/swiftc.exe 
       Build flags: 
       Id flags:  
       
       The output was:
       0
+      <unknown>:0: warning: using (deprecated) legacy driver, Swift installation does not contain swift-driver at: 'S:\\a\\5\\bin\\swift-driver-new.exe'
          Creating library main.lib and object main.exp
       
       
-      Compilation of the Swift compiler identification source "CompilerId/main.swift" produced "main.exe"
+      Compilation of the Swift compiler identification source "CompilerId/main.swift" produced "main"
       
       Compilation of the Swift compiler identification source "CompilerId/main.swift" produced "main.exp"
       
       Compilation of the Swift compiler identification source "CompilerId/main.swift" produced "main.lib"
       
       The Swift compiler identification could not be found in:
-        S:/brwsrcmp/05/CMP0157/repro/CMakeFiles/3.29.5-msvc4/CompilerIdSwift/main.exe
+        S:/brwsrcmp/05/CMP0157/repro/CMakeFiles/3.29.5-msvc4/CompilerIdSwift/main
       
       The Swift compiler identification could not be found in:
         S:/brwsrcmp/05/CMP0157/repro/CMakeFiles/3.29.5-msvc4/CompilerIdSwift/main.exp
       
       The Swift compiler identification could not be found in:
         S:/brwsrcmp/05/CMP0157/repro/CMakeFiles/3.29.5-msvc4/CompilerIdSwift/main.lib
       
   -
     kind: "message-v1"
     backtrace:
       - "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:122 (message)"
       - "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.29/Modules/CMakeDetermineSwiftCompiler.cmake:67 (CMAKE_DETERMINE_COMPILER_ID)"
       - "CMakeLists.txt:15 (project)"
     message: |
-      Running the Swift compiler: "C:/Users/ez/AppData/Local/Programs/Swift/Toolchains/0.0.0+Asserts/usr/bin/swiftc.exe" -version
-      compnerd.org Swift version 6.2-dev (LLVM 9eb07c4c3dec14f, Swift 29bcd2caa04dd76)
+      Running the Swift compiler: "S:/a/5/bin/swiftc.exe" -version
+      <unknown>:0: warning: using (deprecated) legacy driver, Swift installation does not contain swift-driver at: 'S:\\a\\5\\bin\\swift-driver-new.exe'
+      Swift version 6.2-dev (LLVM bb5a46203470a96, Swift dc495396ce7445a)
       Target: x86_64-unknown-windows-msvc
       
   -
     kind: "message-v1"
     backtrace:
       - "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.29/Modules/CMakeDetermineSwiftCompiler.cmake:118 (message)"
       - "CMakeLists.txt:15 (project)"
     message: |
-      Detected CMAKE_Swift_COMPILER_USE_OLD_DRIVER="FALSE" from:
-        "C:/Users/ez/AppData/Local/Programs/Swift/Toolchains/0.0.0+Asserts/usr/bin/swiftc.exe" "-sdk" "S:/a/arm64/Android.platform/Developer/SDKs/Android.sdk" "-sysroot" "S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/sysroot" "-Xclang-linker" "-target" "-Xclang-linker" "aarch64-unknown-linux-android28" "-Xclang-linker" "--sysroot" "-Xclang-linker" "S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/sysroot" "-Xclang-linker" "-resource-dir" "-Xclang-linker" "S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/lib/clang/17" "-gnone" "-wmo" "main.swift" "lib.in" "-###"
+      Detected CMAKE_Swift_COMPILER_USE_OLD_DRIVER="TRUE" from:
+        "S:/a/5/bin/swiftc.exe" "-sdk" "S:/a/arm64/Android.platform/Developer/SDKs/Android.sdk" "-sysroot" "S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/sysroot" "-Xclang-linker" "-target" "-Xclang-linker" "aarch64-unknown-linux-android28" "-Xclang-linker" "--sysroot" "-Xclang-linker" "S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/sysroot" "-Xclang-linker" "-resource-dir" "-Xclang-linker" "S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/lib/clang/17" "-gnone" "-wmo" "main.swift" "lib.in" "-###"
       with output:
-        C:\\Users\\ez\\AppData\\Local\\Programs\\Swift\\Toolchains\\0.0.0+Asserts\\usr\\bin\\swift-frontend.exe -frontend -c main.swift -target x86_64-unknown-windows-msvc -disable-objc-interop -sdk S:\\a\\arm64\\Android.platform\\Developer\\SDKs\\Android.sdk -gnone -empty-abi-descriptor -resource-dir C:\\Users\\ez\\AppData\\Local\\Programs\\Swift\\Toolchains\\0.0.0+Asserts\\usr\\lib\\swift -enable-anonymous-context-mangled-names -file-compilation-dir S:\\brwsrcmp\\05\\CMP0157\\repro\\CMakeFiles\\3.29.5-msvc4\\SwiftCompilerDriver -module-name main -in-process-plugin-server-path C:\\Users\\ez\\AppData\\Local\\Programs\\Swift\\Toolchains\\0.0.0+Asserts\\usr\\bin\\SwiftInProcPluginServer.dll -plugin-path C:\\Users\\ez\\AppData\\Local\\Programs\\Swift\\Toolchains\\0.0.0+Asserts\\usr\\bin -plugin-path C:\\Users\\ez\\AppData\\Local\\Programs\\Swift\\Toolchains\\0.0.0+Asserts\\usr\\local\\bin -o C:\\Users\\ez\\AppData\\Local\\Temp\\TemporaryDirectory.vppCPd\\main-1.o
-        C:\\Users\\ez\\AppData\\Local\\Programs\\Swift\\Toolchains\\0.0.0+Asserts\\usr\\bin\\clang.exe --rsp-quoting=windows -target x86_64-unknown-windows-msvc -nostartfiles -L C:\\Users\\ez\\AppData\\Local\\Programs\\Swift\\Toolchains\\0.0.0+Asserts\\usr\\lib\\swift\\windows -L C:\\Users\\ez\\AppData\\Local\\Programs\\Swift\\Toolchains\\0.0.0+Asserts\\usr\\lib\\swift\\windows\\x86_64 -L S:\\a\\arm64\\Android.platform\\Developer\\SDKs\\Android.sdk\\usr\\lib\\swift\\windows -L S:\\a\\arm64\\Android.platform\\Developer\\SDKs\\Android.sdk\\usr\\lib\\swift\\windows\\x86_64 S:\\a\\arm64\\Android.platform\\Developer\\SDKs\\Android.sdk\\usr\\lib\\swift\\windows\\x86_64\\swiftrt.obj C:\\Users\\ez\\AppData\\Local\\Temp\\TemporaryDirectory.vppCPd\\main-1.o lib.in -I S:\\a\\arm64\\Android.platform\\Developer\\SDKs\\Android.sdk -target aarch64-unknown-linux-android28 --sysroot S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/sysroot -resource-dir S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/lib/clang/17 -o main.exe
+        "S:\\\\a\\\\5\\\\bin\\\\swiftc.exe" -frontend -c main.swift lib.in -target x86_64-unknown-windows-msvc -disable-objc-interop -sdk S:/a/arm64/Android.platform/Developer/SDKs/Android.sdk -sysroot S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/sysroot -gnone -in-process-plugin-server-path "S:\\\\a\\\\5\\\\bin\\\\SwiftInProcPluginServer.dll" -plugin-path "S:\\\\a\\\\5\\\\bin" -autolink-library oldnames -autolink-library msvcrt -Xcc -D_MT -Xcc -D_DLL -module-name main -o "C:\\\\Users\\\\ez\\\\AppData\\\\Local\\\\Temp\\\\main-ec7bca.o"
+        "S:\\\\a\\\\5\\\\bin\\\\clang.exe" -target x86_64-unknown-windows-msvc -nostartfiles -L "S:/a/arm64/Android.platform/Developer/SDKs/Android.sdk\\\\usr\\\\lib\\\\swift\\\\windows/x86_64" "S:/a/arm64/Android.platform/Developer/SDKs/Android.sdk\\\\usr\\\\lib\\\\swift\\\\windows\\\\x86_64\\\\swiftrt.obj" "C:\\\\Users\\\\ez\\\\AppData\\\\Local\\\\Temp\\\\main-ec7bca.o" -I S:/a/arm64/Android.platform/Developer/SDKs/Android.sdk -target aarch64-unknown-linux-android28 --sysroot S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/sysroot -resource-dir S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/lib/clang/17 -o main
         
   -
     kind: "try_compile-v1"
     backtrace:
       - "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerABI.cmake:67 (try_compile)"
       - "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.29/Modules/CMakeTestCCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)"
       - "CMakeLists.txt:15 (project)"
     checks:
       - "Detecting C compiler ABI info"
     directories:
diff --git a/CMakeFiles/rules.ninja b/CMakeFiles/rules.ninja
index defa69c..c47b36e 100644
--- a/CMakeFiles/rules.ninja
+++ b/CMakeFiles/rules.ninja
@@ -16,178 +16,178 @@
 
 rule CUSTOM_COMMAND
   command = $COMMAND
   description = $DESC
 
 
 #############################################
 # Rule for re-running cmake.
 
 rule RERUN_CMAKE
--- a/Sources/InternalCollectionsUtilities/CMakeFiles/InternalCollectionsUtilities.dir/autogenerated/InternalCollectionsUtilities.autolink
+++ /dev/null
@@ -1,3 +0,0 @@
--lswiftCore
--lswift_Concurrency
--lswift_StringProcessing
--- a/build.ninja
+++ b/build.ninja
@@ -598,21 +598,21 @@ build Sources/install/strip: phony Sources/CMakeFiles/install/strip.util
 
 # =============================================================================
 # Object build statements for STATIC_LIBRARY target Collections
 
 
 #############################################
 # Order-only phony target for Collections
 
 build cmake_object_order_depends_target_Collections: phony || cmake_object_order_depends_target_BitCollections cmake_object_order_depends_target_DequeModule cmake_object_order_depends_target_HashTreeCollections cmake_object_order_depends_target_HeapModule cmake_object_order_depends_target_InternalCollectionsUtilities cmake_object_order_depends_target_OrderedCollections
 
-build swift/Collections.swiftmodule Sources/Collections/CMakeFiles/Collections.dir/Collections.swift.o: Swift_COMPILER__Collections_unscanned_Release S$:/brwsrcmp/05/CMP0157/swift-collections/Sources/Collections/Collections.swift | swift/BitCollections.swiftmodule swift/DequeModule.swiftmodule swift/HashTreeCollections.swiftmodule swift/OrderedCollections.swiftmodule swift/HeapModule.swiftmodule swift/InternalCollectionsUtilities.swiftmodule || cmake_object_order_depends_target_Collections
+build swift/Collections.swiftmodule Sources/Collections/CMakeFiles/Collections.dir/Collections.swift.o: Swift_COMPILER__Collections_unscanned_Release S$:/brwsrcmp/05/CMP0157/swift-collections/Sources/Collections/Collections.swift | swift/DequeModule.swiftmodule swift/BitCollections.swiftmodule swift/HashTreeCollections.swiftmodule swift/OrderedCollections.swiftmodule swift/HeapModule.swiftmodule swift/InternalCollectionsUtilities.swiftmodule || cmake_object_order_depends_target_Collections
   FLAGS = -parse-as-library -static -emit-module -emit-module-path swift\Collections.swiftmodule -module-name Collections -module-link-name Collections -sdk S:/a/arm64/Android.platform/Developer/SDKs/Android.sdk -sysroot S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/sysroot -Xclang-linker -target -Xclang-linker aarch64-unknown-linux-android28 -Xclang-linker --sysroot -Xclang-linker S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/sysroot -Xclang-linker -resource-dir -Xclang-linker S:/a/android-ndk-r26b/toolchains/llvm/prebuilt/windows-x86_64/lib/clang/17 -gnone -O -incremental -output-file-map Sources\Collections\CMakeFiles\Collections.dir\Release\output-file-map.json
   INCLUDES = -I S:/brwsrcmp/05/CMP0157/repro/swift
   restat = 1
   RSP_FILE = Sources\Collections\CMakeFiles\Collections.dir\Collections.o.swift.rsp
 
 
 # =============================================================================
 # Link build statements for STATIC_LIBRARY target Collections
 
 
diff --git a/swift/InternalCollectionsUtilities.swiftdoc b/swift/InternalCollectionsUtilities.swiftdoc
index 9edb735..eb83cc7 100644
Binary files a/swift/InternalCollectionsUtilities.swiftdoc and b/swift/InternalCollectionsUtilities.swiftdoc differ
diff --git a/swift/InternalCollectionsUtilities.swiftmodule b/swift/InternalCollectionsUtilities.swiftmodule
index 5a4261c..85665eb 100644
Binary files a/swift/InternalCollectionsUtilities.swiftmodule and b/swift/InternalCollectionsUtilities.swiftmodule differ
diff --git a/swift/InternalCollectionsUtilities.swiftsourceinfo b/swift/InternalCollectionsUtilities.swiftsourceinfo
index 0a36be2..860bf8f 100644
Binary files a/swift/InternalCollectionsUtilities.swiftsourceinfo and b/swift/InternalCollectionsUtilities.swiftsourceinfo differ

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions