Commit Graph

127 Commits

Author SHA1 Message Date
Alex Lorenz
d3cfaa3788 Merge pull request #75549 from hyp/eng/buildps1-host-android-sdk-windows-foundation-macros
[build.ps1] add host SDK path when building foundation for Android on…
2024-08-01 11:30:45 -07:00
Rintaro Ishizaki
fdc1d2f70a Merge pull request #75571 from rintaro/windows-clean
[Windows] Fix 'clean'
2024-07-31 09:55:09 -07:00
Rintaro
e1d4af50e6 [Windows] Fix 'clean'
Automatically detect the last component number so 'clean' removes the
build cache directries correctly
2024-07-30 13:43:07 -07:00
Alex Lorenz
386b945d8b [build.ps1] add host SDK path when building foundation for Android on windows
This lets us build the FoundationMacros for the windows host
2024-07-30 12:24:29 -07:00
Jeremy Schonfeld
443c29d3a0 Invoke foundation tests via SwiftPM (#74594)
* Invoke foundation tests via SwiftPM

* Remove CTEST_OUTPUT_ON_FAILURE from Foundation build
2024-07-29 16:38:06 -07:00
Saleem Abdulrasool
628d4c56cd Merge pull request #75510 from compnerd/exclude
utils: try to downscope builds for the runtime
2024-07-27 09:53:49 -07:00
Saleem Abdulrasool
09f9c2667f utils: try to downscope builds for the runtime
This tweaks the build configuration for the runtime to downscope what we
actually build to what we require. This should have a negligible
improvement to the build times.
2024-07-26 09:59:12 -07:00
Saleem Abdulrasool
b0366e768e utils: enable HCS on Windows builds
This enables a minor optimization where we can outline cold BBs now that
HCS will not attempt to outline scoped EH functions.
2024-07-25 11:10:28 -07:00
Jeremy Schonfeld
f3acbb079f Remove ICU from the toolchain (#75262)
* Remove ICU from the toolchain

* Remove icu comment from GettingStarted.md
2024-07-17 18:19:16 -07:00
Alex Lorenz
6a7be95027 Merge pull request #74754 from hyp/eng/android-compiler-rt-buildps1
[windows][toolchain] build  android compiler-rt builtins when buildin…
2024-07-16 12:35:42 -07:00
Jeremy Schonfeld
b55f881645 Revert swift-corelibs-foundation-windows checkout (#75255) 2024-07-15 17:35:24 -07:00
Alex Lorenz
bd2c3ea53b [windows][toolchain] build android compiler-rt builtins when building Android SDK with build.ps1 2024-07-12 17:22:13 -07:00
Alexander Cyon
4a2942bb4e Fix typos in: cmake, tools, utils, unittests, validation-test
Co-authored-by: Saleem Abdulrasool <compnerd@compnerd.org>
2024-07-12 02:34:00 +03:00
Alex Lorenz
42c43e6262 Merge pull request #75140 from hyp/eng/windows-local-build
[windows][build.ps1] only use swift-corelibs-foundation-windows checkout
2024-07-11 12:26:10 -07:00
Alex Lorenz
d6ed2e982a [windows][build.ps1] only use swift-corelibs-foundation-windows checkout
in CI

https://github.com/swiftlang/swift/pull/75073 has broken a local
toolchain build on windows using build.ps1,
as the local build does not use update_checkout on windows, and
thus does not checkout swift-corelibs-foundation-windows.
2024-07-10 13:49:47 -07:00
Saleem Abdulrasool
31fc0a65e5 Merge pull request #75104 from compnerd/pinning
utils: pin the latest build for ARM64 to bootstrap on Windows
2024-07-10 09:02:05 -07:00
Saleem Abdulrasool
b4f2f4983d utils: pin the latest build for ARM64 to bootstrap on Windows
We need a bootstrapping toolchain. Now that we have an ARM64 build for
Windows, pin that to provide a default pinned toolchain. This should
allow us to build natively on Windows ARM64 without having to specify
the download image ourselves.
2024-07-09 09:48:22 -07:00
Jeremy Schonfeld
a23fd6f183 Move main/6.0 windows Foundation builds to separate branch (#75073) 2024-07-08 18:28:01 -07:00
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