The 5.10 compiler isn't finishing its compilation on Linux:
-- Performing Test CXX_SUPPORTS_FORMAT_NONLITERAL_WARNING
-- Performing Test CXX_SUPPORTS_FORMAT_NONLITERAL_WARNING - Success
-- Performing Test CXX_SUPPORTS_GLOBAL_CONSTRUCTORS_WARNING
-- Performing Test CXX_SUPPORTS_GLOBAL_CONSTRUCTORS_WARNING - Success
-- Performing Test CXX_SUPPORTS_EXIT_TIME_DESTRUCTORS_WARNING
-- Performing Test CXX_SUPPORTS_EXIT_TIME_DESTRUCTORS_WARNING - Success
CMake Error at cmake/modules/SwiftUtils.cmake:116 (get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
stdlib/cmake/modules/SwiftSource.cmake:862 (get_bootstrapping_swift_lib_dir)
stdlib/cmake/modules/SwiftSource.cmake:137 (_compile_swift_files)
stdlib/cmake/modules/AddSwiftStdlib.cmake:972 (handle_swift_sources)
stdlib/cmake/modules/AddSwiftStdlib.cmake:2268 (add_swift_target_library_single)
stdlib/public/Cxx/CMakeLists.txt:9 (add_swift_target_library)
-- Configuring incomplete, errors occurred!
$ cmake --version
cmake version 3.25.1
I was building swift 5.10 and I specified notest as a preset.
Note, I'm only trying to build 5.10 because when I tried 5.9-RELEASE, it didn't build on x86_64 Linux.