Commit Graph

409 Commits

Author SHA1 Message Date
Jeremy Schonfeld
1f2ff67382 Add new _foundation_unicode and _FoundationCShims c modules to windows build script (#74796)
* Add new _foundation_unicode and _FoundationCShims c modules to windows build script

* Only copy directories that exist

* Address feedback
2024-07-01 15:50:36 -07:00
Saleem Abdulrasool
c34911003d Merge pull request #74834 from compnerd/synch
utils: restore synchronisation module on android armv7
2024-07-01 11:35:20 -07:00
Saleem Abdulrasool
b8fccbfe07 utils: restore synchronisation module on android armv7
The underlying issue seems to have been resolved. Restore the
synchronisation module builds for Android.
2024-06-28 15:07:34 -07:00
Jeremy Day
e49fa3e8ae Conditionally include ALLOW_COMPILER_AND_STL_VERSION_MISMATCH 2024-06-24 10:09:25 -07:00
Jeremy Day
00acea4071 [windows] Allow compiler and STL version mismatch
VS 17.10 introduced a requirement on Clang 17, but the pinned Swift
toolchain used to bootstrap the compilers (a 5.10 snapshot) uses Clang 16. We
can relax this version requirement with ALLOW_COMPILER_AND_STL_VERSION_MISMATCH
which needs to be set for all CMAKE_Swift_FLAGS when building the
compilers, as well as explicitly in SwiftCompilerSources as the
invocation of swiftc there is via custom_command
2024-06-24 08:09:08 -07:00
Mishal Shah
60e09ffcf8 Merge pull request #74512 from apple/bump-swift-compiler-windows 2024-06-18 11:01:20 -07:00
Mishal Shah
5b58cd27e4 Use 0.0.0 for Runtime on Swift 5.10.1 installer 2024-06-17 22:59:31 -07:00
Mishal Shah
46cc777e70 Update the Swift toolchain path to 5.10.1 2024-06-17 22:55:13 -07:00
Mishal Shah
81cb0499a2 [Windows] Update the Swift compiler to 5.10.1 2024-06-17 22:24:53 -07:00
Kuba Mracek
37ed08dc7b Add a build-script + CMake flag to enable/disable building the _Volatile module 2024-06-17 13:18:55 -07:00
Saleem Abdulrasool
877547f089 utils: copy static libraries for Android SDK
Update the SDK deployment to include the static libraries as well. This
is primarily needed for the C++ interop libraries.
2024-06-14 14:26:53 -07:00
Jeremy Schonfeld
6dc86867f7 Add CXX compiler to SCL-F Windows build (#74427) 2024-06-14 12:22:53 -07:00
Saleem Abdulrasool
5b9e5a2d51 Merge pull request #74397 from compnerd/buildtools
utils: support VS Build Tools for building the SDKs
2024-06-14 09:09:38 -07:00
Saleem Abdulrasool
9b04241516 utils: support VS Build Tools for building the SDKs
`vswhere` does not report the buildtools installation. If the user only
has the build tools installed, the necessary tools may still be
available. Adjust the script to account for that.
2024-06-13 11:19:25 -07:00
Jeremy Schonfeld
3dd4198adc [Windows] Prepare for swift-foundation in the toolchain (#74127)
* [Windows] Prepare for swift-foundation in the toolchain

* Update SwiftSyntax directory
2024-06-12 08:28:39 -07:00
Hiroshi Yamauchi
1bb335d4a4 Merge pull request #74212 from hjyamauchi/crosscompile
Fix the cross-compiling Windows ARM64 build.
2024-06-10 10:37:20 -07:00
Alex Lorenz
c8b5344d3e Merge pull request #72014 from compnerd/android
utils: support building android SDKs on Windows
2024-06-07 12:37:00 -07:00
Hiroshi Yamauchi
a079bebc59 Fix the cross-compiling Windows ARM64 build.
Fix the path to use the build arch instead of the host arch when
invoking the built swift compiler.

This fixes the build failure that's currently worked around with extra
path setting.
2024-06-07 09:48:50 -07:00
Alex Lorenz
6381a77eb4 [android] disable Synchronization for android armv7 builds 2024-06-06 13:34:15 -07:00
Alex Lorenz
eac1fe4cf0 Drop unecessary CMAKE_SYSTEM_NAME for dispatch, foundation and xctest build invocations 2024-06-06 11:17:45 -07:00
Alex Lorenz
4cfd5f10b9 [android] only build android SDKs when -Android is passed, or -AndroidSDKs are specified when running build.ps1 2024-06-06 10:32:58 -07:00
Alex Lorenz
c032c9b034 [android] add additional checks for build.ps1 android build 2024-06-06 09:33:09 -07:00
Saleem Abdulrasool
eb6cd285da Update utils/build.ps1
Co-authored-by: Mishal Shah <shahmishal@users.noreply.github.com>
2024-05-18 12:30:31 -07:00
Saleem Abdulrasool
5440760612 utils: tweak the path before using a Swift toolchain
We need to tweak the path before we can use the pinned or the just built
toolchain. This becomes a problem when trying to cross-compile the
toolchain.
2024-05-18 09:30:55 -07:00
Alex Lorenz
9db8d92523 review fixes 2024-05-14 12:37:57 -07:00
Alex Lorenz
5905dc9ef3 more cross-arch build.ps1 android fixes 2024-05-14 12:15:06 -07:00
Alexander Smarus
4222205f17 utils: do not install testable corelibs builds 2024-05-13 01:53:08 +03:00
Saleem Abdulrasool
421c0cf890 utils: use cmark gfm for the build when running the compiler
When using the just built compiler, we need to use the build CMark
runtime as it is executing on the build. This used to work when host and
build were guaranteed to be identical (i.e. no cross-compilation). This
is now needed to support cross-compiling ARM64.
2024-05-07 14:47:01 -07:00
Alexander Smarus
b746145671 utils: enable curl websockets support when building with build.ps1 2024-05-01 21:17:04 +03:00
Alex Lorenz
7815f843a3 [android] do not build the builtin float overlay for android (NDK's clang module map doesn't have it) 2024-04-29 15:57:27 -07:00
Alex Lorenz
81d1fdde3f [android][build] clean up the android path handling 2024-04-29 15:51:49 -07:00
Alex Lorenz
63172291b7 [build utils] do not extract the android NDK when it's up to date 2024-04-29 15:49:54 -07:00
Ben Barham
94c10c2a61 [Build] Pass in swift-syntax to SwiftPM
SwiftPM is using swift-syntax for its new manifest refactorings.
2024-04-25 14:37:16 -07:00
Hiroshi Yamauchi
f6ab729ffd Add cross-compiling support for the windows toolchain
Co-authrored with @compnerd
2024-04-18 09:24:14 -07:00
Saleem Abdulrasool
e3bd21ac72 Merge pull request #73058 from compnerd/download
utils: refactor `Fetch-Dependencies` for future changes
2024-04-17 06:53:35 +09:00
Saleem Abdulrasool
726bf5cabf utils: refactor Fetch-Dependencies for future changes
Future work to enable Android SDKs requires fetching additional
dependencies (e.g. Android NDK). Refactor the fetch dependencies method
to allow us to share the download logic rather than replicating it for
each piece. This will also allow us to fetch the Python dependency for
the ARM64 toolchain cross-compilation.
2024-04-16 10:33:36 -07:00
Rintaro Ishizaki
abaa638210 Merge pull request #73010 from rintaro/windows-compilerplugin
[Windows] Build SwiftCompilerPlugin module when testing swift
2024-04-12 16:59:13 -07:00
Rintaro Ishizaki
1a06b94a73 [Windows] Build SwiftCompilerPlugin module when testing swift 2024-04-12 11:03:08 -07:00
Mishal Shah
22919a9039 Merge pull request #71818 from compnerd/curl
utils: update curl to 8.5.0
2024-04-11 14:58:21 -07:00
Saleem Abdulrasool
2c15456bd2 Merge branch 'main' into curl 2024-04-11 08:33:23 +09:00
Saleem Abdulrasool
d19a8dd2ca Merge branch 'main' into zlib 2024-04-11 08:31:30 +09:00
Saleem Abdulrasool
2ee26d97b7 Merge pull request #72376 from compnerd/options
utils: build `makeOption` when building with `build.ps1`
2024-04-09 01:49:41 +09:00
Hiroshi Yamauchi
45f5cff993 Remove unnecessary /usr/include/CSystem directory to avoid build errors 2024-03-29 14:30:19 -07:00
Saleem Abdulrasool
1bc7232d3b utils: build makeOption when building with build.ps1
As `build.ps1` is used both for development and for CI, enable the
building for `makeOption` tool in swift-driver to ease development.
2024-03-16 08:56:01 -07:00
Saleem Abdulrasool
bb92d76a17 utils: support building android SDKs on Windows
This adds the ability to build the Android SDKs as part of the Windows
build.
2024-02-28 09:17:48 -08:00
Saleem Abdulrasool
fe7d5c2486 utils: start wiring up platform in the build
Introduce android and start wiring up the platform to additional sites.
While we cannot yet build the android SDK, this improves the summary to
use the platform identifier and sets up the ability to build android
variants.
2024-02-27 08:02:01 -08:00
Saleem Abdulrasool
dd5d6fac6e utils: update curl to 8.5.0
CURL 8.5.0 contains a change to `fseeko` handling which is required to
build for Android with the newer NDKs.
2024-02-22 11:07:54 -08:00
Saleem Abdulrasool
9944af3b8d update_checkout: update zlib to 1.3.1
This is required to enable building zlib for Android with newer NDKs.
2024-02-22 10:54:09 -08:00
Saleem Abdulrasool
000fd24874 build: final preparations for adding Android SDK support
Remove some hardcoded globals which assumed that builds were always for
the same OS. With the introduction of Android SDK support, we will no
longer be able to hold to that.
2024-02-22 10:31:02 -08:00
Saleem Abdulrasool
2ab18d3d5c build: explicitly specify the platform that we are building for
This prepares the structure for building multiple platform SDKs on
Windows.
2024-02-21 09:02:27 -08:00