Commit Graph

8541 Commits

Author SHA1 Message Date
Rintaro Ishizaki
3bc20a9596 [build-script] Enable new parser validation by default
Widen the parser validation coverage.
This encourages the developers to implement the new grammar in
SwiftParser in addition to the old C++ parser.

In case  there's an unavoidable reason not to implement in SwiftParser,
disable the validation for each test case by passing a frontend option
'-disable-experimental-parser-round-trip'. But please file an issue
and add FIXME like:

  // FIXME: Remove '-disable-experimental-parser-round-trip' (rdar://xxx).
2024-10-11 14:46:23 -07:00
swift-ci
ee94d39cd4 Merge remote-tracking branch 'origin/main' into rebranch 2024-10-11 02:34:39 -07:00
Kuba (Brecka) Mracek
087676da11 Merge pull request #76941 from kubamracek/embedded-concurrency-no-incremental
Teach check-incremental about -emit-empty-object-file (which disables incremental LLVM codegen, so don't check timestamps if present)
2024-10-11 02:34:26 -07:00
Kuba Mracek
2e4e196bc9 Teach check-incremental about -emit-empty-object-file (which disables incremental LLVM codegen, so don't check timestamps if present) 2024-10-10 09:29:52 -07:00
swift-ci
67cb346398 Merge remote-tracking branch 'origin/main' into rebranch 2024-10-10 09:07:23 -07:00
Mishal Shah
0552f3640c Merge pull request #76947 from swiftlang/untested-nightly-toolchains 2024-10-10 08:47:08 -07:00
Mishal Shah
210177fae9 [utils] Utility to download unpublished toolchains for main branch 2024-10-10 00:45:18 -07:00
swift-ci
f56ecd50c0 Merge remote-tracking branch 'origin/main' into rebranch 2024-10-09 23:14:02 -07:00
Kuba Mracek
d52b12863e Be more clear that check-incremental outputs are errors 2024-10-09 17:03:00 -07:00
swift-ci
9818bf8783 Merge remote-tracking branch 'origin/main' into rebranch 2024-10-02 14:23:33 -07:00
YR Chen
e9a8ebb494 [build.ps1] fix misuse of varibles in Extract-Toolchain 2024-10-02 10:17:51 -07:00
YR Chen
a67f82b500 [build.ps1] Fix newer PS Core compatibility
In Powershell Core, `$_` from `Get-ChildItem` output will be interpreted as full path. Use `$($_.Name)` to ensure only base file name is used.
2024-10-02 10:17:51 -07:00
YR Chen
cb724f8a6d [build.ps1] eliminate cmdlet aliases 2024-10-02 10:17:51 -07:00
swift-ci
208c7e0950 Merge remote-tracking branch 'origin/main' into rebranch 2024-10-02 10:14:53 -07:00
Saleem Abdulrasool
946ee34153 Merge pull request #76706 from hyp/eng/android-lld
[android][build.ps1] use the newly built lld when linking swift runti…
2024-10-02 10:10:31 -07:00
Felipe de Azevedo Piovezan
50f1930783 Revert "[build-script] Run LLDB tests with new redecl-completion setting"
This reverts commit 8858585677.

This mode is not working well with rebranch, so we're disabling its testing to
reduce the CI noise.
2024-09-27 08:50:50 -07:00
Alex Hoppen
04e78e0578 [build] Build sourcekit-lsp for multiple arches and lipo them
Instead of building SourceKit-LSP using SwiftPM's multi-arch xcbuild backend, build it for only one arch at a time and then run `lipo` to merge the two resulting binaries.

This should allow us to share build products between building installing and testing and also eliminates other quirks resulting from the xcbuild backend.
2024-09-26 21:52:49 -07:00
Ben Barham
c15bc19946 Merge remote-tracking branch 'origin/main' into main-to-rebranch
Conflicts:
  - `lib/Serialization/ModuleFileSharedCore.cpp` new headers on main
2024-09-26 16:01:56 -07:00
Saleem Abdulrasool
069302e502 utils: do not allow the compiler mismatch for the STL
When using a development toolchain or the 6.0 toolchain, do not allow
the mismatch of the compiler as we have a new enough compiler.
2024-09-25 15:12:43 -07:00
Alex Lorenz
66715b6c2c [android][build.ps1] use the newly built lld when linking swift runtime for android
the linker in the NDK might be too old, and not support all relocations, so we should use the lld we have just built in the toolchain
2024-09-25 11:50:58 -07:00
Adrian Prantl
a341986e75 Remove the LLDB (classic) test configuration. 2024-09-25 10:16:17 -07:00
Felipe de Azevedo Piovezan
45e5ffb1d2 Merge pull request #76699 from felipepiovezan/felipe/revert_linux_preset_libcxx
Revert "[utils][presets] Build libc++ for LLDB on linux"
2024-09-25 09:31:29 -07:00
Felipe de Azevedo Piovezan
d7ac1cf7d7 Revert "[utils][presets] Build libc++ for LLDB on linux"
This reverts commit a7d01a1ef7.

We need to upgrade the bots toolchain before this can be enabled.
2024-09-25 09:30:25 -07:00
swift-ci
05efb8ec58 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-25 08:34:55 -07:00
Jeremy Schonfeld
6a5ae8d5df Copy Testing modules/binaries in Install-Platform (#76352)
* Copy Testing modules/binaries in Install-Platform

* Copy full Testing.swiftmodule directory rather than individual files

* Fix Copy-Directory command
2024-09-25 08:21:21 -07:00
swift-ci
753b917274 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-25 05:36:07 -07:00
Slava Pestov
bfc4f956fd Merge pull request #76662 from slavapestov/fine-grained-timers-flag
Add -fine-grained-timers flag
2024-09-25 08:26:08 -04:00
Michael Buch
4a367a03e5 [utils][presets] Build libc++ for LLDB on linux
We pass `-stdlib=libc++` in the test-suite to
Clang for many of our tests because we want to
explicilty test against libc++ type layouts.
However, if we don't do this against a newly built
libc++ we risk testing against old/unexpected layouts
or if libc++ isn't available on the system, falling
back to the system libstdc++.

This patch adds libcxx as an explicit target in the preset
so the tests build against a fresh libc++ (as we do for
our other LLDB presets too).
2024-09-24 11:31:01 +01:00
Slava Pestov
5ec225eae6 scale-test: Pass -fine-grained-timers
Also, if all the stats are zero, raise an error instead of
silently succeeding.
2024-09-23 18:04:25 -04:00
swift-ci
0c1d53df6d Merge remote-tracking branch 'origin/main' into rebranch 2024-09-23 09:54:24 -07:00
Hiroshi Yamauchi
b2cb3758f9 Merge pull request #76563 from hjyamauchi/mimalloc
Implement the mimalloc option to speed up the compiler on Windows
2024-09-23 09:40:55 -07:00
Michael Buch
c483a23f92 Merge pull request #76646 from swiftlang/lldb/ci-build-libcxx-linux-to-rebranch
[utils][presets] Build libc++ for LLDB on linux

We pass `-stdlib=libc++` in the test-suite to
Clang for many of our tests because we want to
explicilty test against libc++ type layouts.
However, if we don't do this against a newly built libc++ we risk testing against old/unexpected layouts or if libc++ isn't available on the system, falling back to the system libstdc++.

This patch adds libcxx as an explicit target in the preset so the tests build against a fresh libc++ (as we do for our other LLDB presets too).
 
rdar://136231390
2024-09-23 16:52:28 +01:00
Michael Buch
a7d01a1ef7 [utils][presets] Build libc++ for LLDB on linux
We pass `-stdlib=libc++` in the test-suite to
Clang for many of our tests because we want to
explicilty test against libc++ type layouts.
However, if we don't do this against a newly built
libc++ we risk testing against old/unexpected layouts
or if libc++ isn't available on the system, falling
back to the system libstdc++.

This patch adds libcxx as an explicit target in the preset
so the tests build against a fresh libc++ (as we do for
our other LLDB presets too).
2024-09-23 11:26:55 +01:00
swift-ci
a0097bde91 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-21 11:14:00 -07:00
Saleem Abdulrasool
dacdb8fab2 Merge pull request #76577 from compnerd/undent
Remove `swift-indent` tool
2024-09-21 10:57:41 -07:00
swift-ci
60da39c670 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-20 16:34:01 -07:00
Mishal Shah
8c4e7d2a88 Merge pull request #76598 from swiftlang/shahmishal/change-the-scheme
[update-checkout] Replace release/6.0.1 with release/6.0.2
2024-09-20 16:24:20 -07:00
swift-ci
7febd83226 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-20 11:14:58 -07:00
Rintaro Ishizaki
33b88b9fc0 Merge pull request #76489 from rintaro/windows-testing-foundationdir
[Windows] Teach Build-Testing how to find Foundation
2024-09-20 11:05:07 -07:00
swift-ci
8ffcf7ba62 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-20 04:14:25 -07:00
Ben Barham
8542e59546 Revert "CI: Include stdlib build for Wasm in the Linux buildbot" (#76597)
Reverts swiftlang/swift#72010, which causes a 1 hour regression in Linux build times. This is significantly higher than the original March numbers (~15 minutes). We should investigate where the extra time is coming from - possibly from the foundation and testing additions?
2024-09-20 04:04:43 -07:00
Mishal Shah
1299d2234a [update-checkout] Replace release/6.0.1 with release/6.0.2 2024-09-19 22:52:35 -07:00
swift-ci
f5d37c667f Merge remote-tracking branch 'origin/main' into rebranch 2024-09-19 18:14:31 -07:00
Hiroshi Yamauchi
7b437ea4e4 Implement the mimalloc option to speed up the compiler on Windows
This is disabled by default.
2024-09-19 12:23:26 -07:00
Saleem Abdulrasool
6443619126 Remove swift-indent tool
This removes the implementation of the `swift-indent` tool, its
associated documentation, and utilities. This tool was never completed
and has much better alternatives with `swift-format` which is more
flexible and actually maintained.
2024-09-19 11:21:59 -07:00
Yuta Saito
24bd384f84 [wasm] Configure LLVM for WebAssembly target independently from the native LLVM build
We have been using the host LLVM build directory to configure the Wasm
Swift stdlib. This has been working fine so far as the stdlib build is
configured with `CMAKE_SYSTEM_NAME` having host system name. However,
we fixed the stdlib build to use `WASI` as the system name properly in
the previous commit. This exposed the issue that the host LLVM build
directory is not suitable for configuring the stdlib build.
2024-09-19 09:11:30 +00:00
Yuta Saito
59cda3636a [wasm] Fix cross-compilation on macOS host machine
We didn't set the CMAKE_SYSTEM_NAME and CMAKE_SYSTEM_PROCESSOR when
cross-compiling stdlib for WASI. This caused the build to fail on macOS
host machines as the build system was trying to build some overlays
assuming the target is macOS.
Additionally, add a default "SWIFT_HOST_VARIANT_SDK" for WASI target
even though we don't support it as a host system yet because it's
required anyway.
2024-09-18 17:25:13 +00:00
swift-ci
d0a1cdfd61 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-18 00:56:54 -07:00
Yuta Saito
365b72f606 Merge pull request #72010 from kateinoigakukun/yt/include-wasm-build-linux-buildbot
CI: Include stdlib build for Wasm in the Linux buildbot
2024-09-18 16:42:07 +09:00
swift-ci
17d5ec2432 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-17 00:15:49 -07:00