Commit Graph

8542 Commits

Author SHA1 Message Date
swift-ci
17d5ec2432 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-17 00:15:49 -07:00
Meghana Gupta
e6fc5c2e6d Delete SWIFT_ENABLE_EXPERIMENTAL_NONESCAPABLE_TYPES flag 2024-09-16 14:08:16 -07:00
Ben Barham
a7b50f357f Merge remote-tracking branch 'origin/main' into manual-main-merge
Conflicts:
  - `lib/Driver/ToolChains.cpp` conflicting with the `addAllArgs` rename
    for multiple options
2024-09-16 13:53:18 -07:00
Rintaro Ishizaki
ff0f9232aa [Windows] Teach Build-Testing how to find Foundation
Pass `Foundation_DIR` to the cmake.
2024-09-16 12:30:53 -07:00
Yuta Saito
37927fd707 wasm: Build static SDK overlay explicitly
The static SDK overlay has been built implicitly for a long time, but
this is not the case anymore after 5bf2c937ab.
We need to build it explicitly now.
2024-09-16 06:15:08 +00:00
Ben Langmuir
46a83bea0c Roll back to watchOS 6.0 to keep armv7k support
While the swift compiler in Xcode links against tbd files in the sdk
that contain an armv7k slice, the open source swift toolchain links
against the stdlib dylb that is in the toolchain itself. This means that
we cannot drop support for armv7k support in the stdlib dylib without
losing support for building armv7k when back deploying to older watch
targets. For now, roll back the recent deployment target bump from 9.0
to 6.0 so that we keep armv7k and i386 simulator.

rdar://135560598
2024-09-13 08:49:09 -07:00
Michael Gottesman
e57d7d6c82 Merge pull request #76413 from gottesmm/swift_snapshot_tool_more_fixes
[swift_snapshot_tool] Some small fixes and add a run_toolchain command for running a command against a specific toolchain.
2024-09-12 18:05:28 -07:00
Ian Anderson
5bf2c937ab [CMake] [Darwin] Don't build the SDK overlays by default on Apple platforms
The Apple SDKs have been providing the Darwin overlay since macOS 10.14.4, iOS 12.2, et al. More recently the SDK version has diverged from the Swift version making them incompatible. Stop building the overlay from Swift. Once the SDK overlays aren't being built, the clang overlays need to be built in testing.

rdar://115192929
2024-09-11 22:26:37 -07:00
Michael Gottesman
3c1bcc94ec [swift_snapshot_tool] Some small fixes and add a run_toolchain command for running a command against a specific toolchain.
run_toolchain is mainly useful for diagnosing issues with ones script without
needing to fully bisect... but it also can just be used independently.
2024-09-11 15:23:40 -07:00
Michael Gottesman
f595374561 [swift_snapshot_tool] Make the required platform macOS v14 so that we can use some newer APIs. 2024-09-11 15:23:40 -07:00
Michael Gottesman
e24f296b02 Merge pull request #76356 from gottesmm/swift_snapshot_tool_workspace_readme
[swift_snapshot_tool] Change the workspace to a better temp directory and add a README.md.
2024-09-11 15:22:15 -07:00
Evan Wilde
4376692f4d Merge pull request #76389 from etcwilde/ewilde/earlyswiftdriver-swiftc-requirement
Relax Swift tool check to find swiftc
2024-09-11 06:02:18 -07:00
Evan Wilde
5271bc2335 Relax Swift tool check to find swiftc
The Swift-Driver build here only requires a working swiftc, not
necessarily all of SPM. Relaxing the required tool check to accept
building the driver if there's a Swift compiler available.
2024-09-10 14:58:07 -07:00
Evan Wilde
3b6d5b0c5e Merge pull request #75765 from etcwilde/ewilde/notest-no-test-swiftformat
Skip testing swiftformat when testing is skipped
2024-09-09 19:08:51 -07:00
Artem Chikin
c6f81cb685 Merge pull request #76344 from swiftlang/revert-75918-new-apple-sdk-build-fixes
Revert "[CMake] [Darwin] Don't build the SDK overlays by default on Apple platforms"
2024-09-09 16:00:02 -07:00
Saleem Abdulrasool
adf3bde077 Merge pull request #76290 from compnerd/targets
utils: make `-BuildTargets` optional in build.ps1
2024-09-09 13:51:36 -07:00
Michael Gottesman
a451fc79c7 [swift_snapshot_tool] Add a README. 2024-09-09 12:46:27 -07:00
Michael Gottesman
4cc975200c [swift_snapshot_tool] Default --workspace to use /tmp/swift_snapshot_tool_workspace_v1 instead of /tmp/workspace.
Now that I have put this into swift's utils, it isn't appropriate for me to just
take /tmp/workspace. The name swift_snapshot_tool_workspace_v1 is a better
name.
2024-09-09 12:45:42 -07:00
Artem Chikin
1baff87879 Revert "[CMake] [Darwin] Don't build the SDK overlays by default on Apple platforms" 2024-09-09 09:57:14 -07:00
swift-ci
1acf4079c0 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-08 07:34:29 -07:00
Yuta Saito
5eb3062213 Merge pull request #76147 from kateinoigakukun/yt/swift-testing-wasm
Include swift-testing in the Wasm Swift SDK
2024-09-08 23:24:59 +09:00
swift-ci
f70ebb296c Merge remote-tracking branch 'origin/main' into rebranch 2024-09-06 18:14:52 -07:00
Ian Anderson
080c20ceb4 Merge pull request #75918 from ian-twilightcoder/new-apple-sdk-build-fixes
[CMake] [Darwin] Don't build the SDK overlays by default on Apple platforms
2024-09-06 18:12:13 -07:00
swift-ci
f0a5f22c64 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-06 14:14:33 -07:00
Michael Gottesman
b0b5b2a0b4 Merge pull request #76292 from gottesmm/pr-16c5ea0901cf1d5a352b7e8dd0c3f9b6f644bed3
[utils] Add a small swift tool called swift_snapshot_tool for working with swift.org snapshots.
2024-09-06 14:01:24 -07:00
swift-ci
a377cfa315 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-06 13:33:57 -07:00
Ian Anderson
8959dd97fe [CMake] [Darwin] Don't build the SDK overlays by default on Apple platforms
The Apple SDKs have been providing the Darwin overlay since macOS 10.14.4, iOS 12.2, et al. More recently the SDK version has diverged from the Swift version making them incompatible. Stop building the overlay from Swift. Once the SDK overlays aren't being built, the clang overlays need to be built in testing.

%target-swift-emit-pcm doesn't use the sdk, but %target-swift-frontend does, which will cause them to have a mismatch with "builtin headers belong to system modules, and _Builtin_ modules are ignored for cstdlib headers" aka LANGOPT(BuiltinHeadersInSystemModules) aka -fbuiltin-headers-in-system-modules.

rdar://115192929
2024-09-06 13:28:14 -07:00
Ben Langmuir
44b68cb5dc Merge pull request #75914 from benlangmuir/turn-it-up-to-11
Bump the deployment target for the compiler to macOS 13.0
2024-09-06 13:23:47 -07:00
Evan Wilde
f7007dc721 Skip testing swiftformat when testing is skipped
The notest configurations were still testing swift-format.
Adding skip-test-swiftformat in those configurations.
2024-09-06 12:47:40 -07:00
swift-ci
94ea339628 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-06 10:53:58 -07:00
Saleem Abdulrasool
9819577c96 utils: make -BuildTargets optional in build.ps1
This doesn't really add much to readability and is almost always
`default`. Simply assume the default behaviour and allow callers
to alter the behaviour if needed.
2024-09-05 16:49:21 -07:00
Michael Gottesman
efc87d9452 [utils] Add a small swift tool called swift_snapshot_tool for working with swift.org snapshots.
Just an initial start.
2024-09-05 13:24:01 -07:00
Saleem Abdulrasool
f7719332fc utils: improve android swift-corelibs-foundation support
Adjust the build invocation for swift-corelibs-foundation to account for
changes required for building for android after re-coring the library.
We use the SDKRoot to find the necessary libraries.
2024-09-05 12:18:19 -07:00
swift-ci
6fc74c9f68 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-04 15:54:11 -07:00
Andrew Rogers
7709bdab28 [android] build libxml2 and curl with -fPIC
Sets `CMAKE_POSITION_INDEPENDENT_CODE=YES` when building libxml2 and
curl. This causes `-fPIC` to be passed to clang when compiling, which is
required for the i686 Android build to succeed.

This change makes `build.ps1` consistent with the Python build files
swift_build_support\products\libxml2.py and
swift_build_support\products\curl.py, which already define this cmake
property. It is already propertly set for zlib in both locations.
2024-09-04 11:14:01 -07:00
swift-ci
ab94689577 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-04 09:55:22 -07:00
Rintaro Ishizaki
736faacbde Merge pull request #76179 from rintaro/cmake-clean-testing-rdar135021207
[build-script] Always clean 'SwiftTesting' and 'SwiftTestingMacros'
2024-09-04 09:42:53 -07:00
swift-ci
756fe355fa Merge remote-tracking branch 'origin/main' into rebranch 2024-09-03 22:34:34 -07:00
Saleem Abdulrasool
2b817f377d Merge pull request #76113 from andrurogerz/android-sdk-ds2
[android] conditionally build DS2 for the Android SDK
2024-09-03 22:26:45 -07:00
swift-ci
f0918ec2d2 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-03 17:16:17 -07:00
Andrew Rogers
a6684fd9c9 apply PR feedback 2024-09-03 13:18:43 -07:00
Vera Mitchell
c9cc58cd0b update build-script python tests 2024-09-03 13:52:43 -06:00
Vera Mitchell
2dc3995d56 add preview-stdlib-docs command to spin up DocC's preview server 2024-09-03 13:52:42 -06:00
Vera Mitchell
b83c91a2e8 build stdlib docs with docc 2024-09-03 13:52:42 -06:00
Vera Mitchell
b4529a69eb add build-stdlib-docs flag that generates stdlib symbol graphs 2024-09-03 13:52:42 -06:00
Vera Mitchell
b66bc17da2 install DocC-Render in install-all mode when DocC is being built 2024-09-03 13:52:42 -06:00
Andrew Rogers
c9ee368536 [android] conditionally build ds2 for Android SDK
Conditionally include the ds2 debug server in the Android SDK build in
build.ps1 via the `-IncludeDS2` flag.
2024-09-03 11:24:19 -07:00
swift-ci
6dcc7eacf0 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-31 22:53:57 -07:00
Mishal Shah
3dfac5f15c [update-checkout] Add scheme for release/6.0.1
(cherry picked from commit 9a955ae22a)
2024-08-31 11:50:50 -07:00
Allan Shortlidge
5c30b30947 Merge pull request #76177 from tshortli/availability-visionos
build-script: Copy `libclang_rt.a` from the host toolchain for visionOS
2024-08-31 10:00:13 -07:00