Commit Graph

8542 Commits

Author SHA1 Message Date
finagolfin
21832cb6d2 Merge pull request #78013 from marcprux/patch-3
Update buildbot_linux_crosscompile_android preset
2024-12-11 20:14:53 +05:30
Anthony Latsis
6a76c92803 xcodegen: Show absolute path in skipping warning
This would have saved me the time I spent figuring out why something
went wrong with the project generation. In my case, the absolute path
shown by this warning would have been overtly invalid because the tool
was failing to infer the source root directory.
2024-12-11 11:37:22 +00:00
Hiroshi Yamauchi
5d9505192c utils: unlock building swift-inspect
When building for ARM64, we can now build swift-inspect as we use CMake
for the cross-compilation.

This is a second attempt for https://github.com/swiftlang/swift/pull/77810
2024-12-09 12:16:22 -08:00
Saleem Abdulrasool
56e292dbd0 Merge pull request #78002 from compnerd/generated-names
utils: update property for Windows SDK MSI
2024-12-09 08:13:41 -08:00
Saleem Abdulrasool
2914d0e46e Merge pull request #77986 from compnerd/mimallocate
utils: simplify mimalloc build handling
2024-12-07 15:52:40 -08:00
Saleem Abdulrasool
664bece475 utils: simplify mimalloc build handling
Use a bit more of a declarative style for describing the build rules for
mimalloc.
2024-12-06 14:39:26 -08:00
Hiroshi Yamauchi
5cecca8a60 Revert "utils: unlock building swift-inspect"
Revert https://github.com/swiftlang/swift/pull/77810

Fix the swift-inspect build in https://ci-external.swift.org/job/swift-main-windows-toolchain-arm64
2024-12-06 14:37:20 -08:00
Hiroshi Yamauchi
e943d0f0d2 Revert "[windows] Various improvements in build.ps1"
Revert https://github.com/swiftlang/swift/pull/77948

To fix CI https://ci-external.swift.org/job/swift-main-windows-toolchain-arm64/785/consoleText
2024-12-06 14:37:05 -08:00
Hiroshi Yamauchi
32832dd1e1 Revert "[windows][toolchain] Enable builtins and sanitizers"
Revert https://github.com/swiftlang/swift/pull/77770

To fix CI https://ci-external.swift.org/job/swift-main-windows-toolchain-arm64/785/consoleText
2024-12-06 14:22:30 -08:00
Saleem Abdulrasool
f1f10517d5 Merge pull request #78000 from compnerd/yolo
utils: drop cmake version check
2024-12-06 14:18:03 -08:00
Ben Barham
95c30115b9 Merge pull request #77647 from finagolfin/llbuildSwift
[build-script] Stop installing the llbuildSwift library that is no longer used
2024-12-06 12:53:53 -08:00
Marc Prud'hommeaux
0107a555cd Add preset buildbot_linux_crosscompile_android,tools=RA,stdlib=RD,build,x86_64 2024-12-06 13:27:13 -05:00
Saleem Abdulrasool
99d0221836 utils: adjust installer build and staging
Update the property to include the SDK MSI for Windows as we start
adding additional platforms. Update the file name patterns to reflect
the new naming.
2024-12-06 08:45:48 -08:00
Marc Prud'hommeaux
01353517ca Update buildbot_linux_crosscompile_android preset 2024-12-06 09:41:54 -05:00
Saleem Abdulrasool
1d1ecb44a0 utils: drop cmake version check
There is no guarantee that `cmake` is available in the path. CMake may
be provided through VS or the VS Build Tools, in which case, you must be
in a VSDevCmd environment to invoke `cmake`. This adds quite a bit of
complexity for little gain as the projects will check of the minimum
version required (`cmake_minimum_required`).
2024-12-05 16:09:29 -08:00
Saleem Abdulrasool
3ab2a3ee4c Merge pull request #77770 from weliveindetail/windows-toolchain-sanitizers
[windows][toolchain] Enable builtins and sanitizers
2024-12-05 15:46:46 -08:00
Saleem Abdulrasool
5db0f83ac7 Merge pull request #77948 from weliveindetail/buildps1-mod-combined
[windows] Various improvements in build.ps1
2024-12-05 12:59:36 -08:00
Saleem Abdulrasool
1b2a90133e Merge pull request #77810 from compnerd/crossed-inspector
utils: unlock building swift-inspect
2024-12-05 11:22:21 -08:00
Stefan Gränitz
7b261935d1 fixup! Change compiler notation in Build-CMakeProject 2024-12-05 14:46:47 +01:00
Stefan Gränitz
a39de72b22 fixup! Factor out Get-BuiltToolchainTool analog to Get-PinnedToolchainTool and give both an optional Name param 2024-12-05 14:46:40 +01:00
Hiroshi Yamauchi
b623958889 Merge pull request #77940 from hjyamauchi/winarm64ci
Fix python arch on the windows arm64 CI
2024-12-04 10:11:37 -08:00
Mishal Shah
34dffc57e4 Merge pull request #77872 from swiftlang/revert-76597-revert-72010-yt/include-wasm-build-linux-buildbot
Revert "Revert "CI: Include stdlib build for Wasm in the Linux buildbot""
2024-12-04 09:12:13 -08:00
Stefan Gränitz
addd7a28c5 Change compiler notation in Build-CMakeProject 2024-12-04 16:47:17 +01:00
Stefan Gränitz
861df6f6b4 Consolidate Python module installation 2024-12-04 16:19:46 +01:00
Stefan Gränitz
bcaaaa521e Consolidate dependency infos 2024-12-04 16:19:46 +01:00
Stefan Gränitz
6ca7ed6f56 Drop workaround for FindFirstFileExA issue with CMake pre-3.26.3 2024-12-04 16:18:44 +01:00
Stefan Gränitz
2bcb1a770b Add version check for sccache 2024-12-04 16:18:07 +01:00
Stefan Gränitz
a7af8eaff4 Configure compiler launcher for C and C++ unconditionally 2024-12-04 16:18:07 +01:00
Stefan Gränitz
ebeaa004d4 [windows][toolchain] Enable sccache for Clang
We need sccache 0.7.4 or newer for clang support
2024-12-04 16:18:07 +01:00
Stefan Gränitz
07029daf74 Replace "Android" string compares with [Platform]::Android enum 2024-12-04 16:17:15 +01:00
Stefan Gränitz
8882b93a5d Replace "Windows" string compares with [Platform]::Windows enum 2024-12-04 16:17:13 +01:00
Stefan Gränitz
e933aefbe0 Initialize sccache dir right away 2024-12-04 16:16:24 +01:00
Stefan Gränitz
8308a79641 Rename DriverBinaryCache and streamline path concat 2024-12-04 16:16:23 +01:00
Stefan Gränitz
0079c3417b Factor out Get-BuiltToolchainTool analog to Get-PinnedToolchainTool and give both an optional Name param 2024-12-04 16:16:23 +01:00
Stefan Gränitz
1a21d16374 Hoist CompilersBinaryCache variable to global scope 2024-12-04 16:16:23 +01:00
Stefan Gränitz
d922df0bdb Factor out function Get-ClangDriverName 2024-12-04 16:16:23 +01:00
Cyndy Ishida
1b869ef828 Revert "[BuildSystem] Stop building for i386-watch-simulator" (#77911)
* Revert "[Build] Fix swift_build_support tests."

This reverts commit fc2d1b3b23.

* Revert "[BuildSystem] Stop building for i386-watch-simulator (#77692)"

This reverts commit 1ab968d2b6.

This change can't be made without other issues fixed downstream first.
2024-12-03 23:17:12 -08:00
Saleem Abdulrasool
ce09887cb2 Merge pull request #77862 from compnerd/manifest-xml
build: enable libxml2 in the toolchain, use `llvm-mt`
2024-12-03 21:13:02 -08:00
Hiroshi Yamauchi
5d7d63f0ee Fix python arch on the windows arm64 CI
https://ci-external.swift.org/job/swift-main-windows-toolchain-arm64/777/consoleText
```
Error: Program 'python.exe' failed to run: The specified executable is not a valid application for this OS platform.At C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain-arm64\swift\utils\build.ps1:545 char:7
+       & $Executable @Args | Out-Null
+       ~~~~~~~~~~~~~~~~~~~.
```
2024-12-03 14:40:24 -08:00
Saleem Abdulrasool
020d67330c build: enable libxml2 in the toolchain, use llvm-mt
Enable support for libxml2 on Windows to allow `llvm-mt` to be usable.
This then allows us to use `llvm-mt` as the manifest tool when building
for Windows. Remove the then obsoleted workaround of `-D CMAKE_MT=mt`.
This reduces the dependency on the MSVC toolchain and paves the path to
enabling the use of the manifest tool in SPM.
2024-12-02 17:05:20 -08:00
Mishal Shah
e1c5216c61 Merge pull request #77799 from swiftlang/bump-swift-version-6.2
Bump the Swift version to 6.2
2024-12-02 13:14:06 -08:00
YR Chen
ab04b3adf3 [build.ps1] don't use host Python any more (#76594)
* [build.ps1] don't use host Python any more

* [build.ps1] fix compatibility with Windows Powershell

* Try to address CI failure
2024-12-02 10:40:17 -08:00
Hamish Knight
7f313a6621 Merge pull request #77791 from hamishknight/enable-buildable-folders 2024-12-02 09:19:47 +00:00
Hamish Knight
f4c201fc20 Merge pull request #77807 from hamishknight/update-xcodegen-help 2024-12-02 09:19:12 +00:00
3405691582
301a0c49fc Swift on OpenBSD supports arm64.
However, to do this, we end up changing how amd64 is supported too.
Previously, I had tried to keep some meaningful separation between
platform spelling and LLVM spelling, but this is becoming more difficult
to meaningfully maintain.

Target specifications are trivially converted LLVM triples, and the
module files are looked up by LLVM triples. We can make sure that the
targets align, but then the Glibc to SwiftGlibc import breaks. That could
also be addressed, but then we get to a point where the targets set up
by build-script and referenced by cmake begin to misalign. There are
references in build-script-impl for a potential renaming site, but it's
not quite enough.

It's far simpler to give up and rename to LLVM spellings right at the
beginning. This does mean that this commit is less constrained to just
adding the necessary parts to enable arm64, but it should mean less
headaches overall from differing architecture spellings.
2024-11-30 16:33:46 -05:00
Hamish Knight
dade4217db [xcodegen] Show caveat for --stdlib-swift too
While here, also add a caveat for the fact that
`--stdlib-swift` is disabled by default since it's
surprised a couple of folks now.
2024-11-29 16:07:13 +00:00
Hamish Knight
e04efdd2bb [xcodegen] Enable buildable folders by default
I've been living on this for a bit without issue,
enable by default.
2024-11-29 16:05:12 +00:00
Max Desiatov
4ebcea39c0 Revert "Revert "CI: Include stdlib build for Wasm in the Linux buildbot" (#76…"
This reverts commit 8542e59546.
2024-11-29 12:21:24 +00:00
Stefan Gränitz
cf748a9dd0 Exclude Anroid targets for the moment 2024-11-28 17:06:33 +01:00
Stefan Gränitz
934c9e3816 Build sanitizers for all enabled SDKs by default 2024-11-28 13:02:08 +01:00