Alejandro Alonso
c6bcb037e6
Update Unicode generator data files to 16
2025-01-14 14:15:07 -08:00
Evan Wilde
501f5909f6
Merge pull request #78577 from etcwilde/ewilde/version-update-note
...
Leave reminder to update RuntimeVersions
2025-01-14 10:57:00 -08:00
Ben Barham
b718c6d448
Merge pull request #78575 from bnbarham/fix-compat-suite
...
Build swift-testing as part of the compat-suite toolchain
2025-01-13 14:57:02 -08:00
Ben Barham
57331b2299
Build swift-testing as part of the compat-suite toolchain
...
Various projects (vapor in particular) now depend on swift-testing. The
current Xcode installation doesn't contain it and we're not building it,
so they're failing. Update the base compat suite preset to also build
swift-testing (and its macros).
2025-01-13 08:35:25 -08:00
Saleem Abdulrasool
3d77bf6142
Update build.ps1
2025-01-13 07:50:09 -08:00
Saleem Abdulrasool
a3e365e8ef
Update build.ps1
2025-01-12 18:34:54 -08:00
Saleem Abdulrasool
9ecfdcdf81
utils: introduce a ToolchainInfo.plist on Windows
...
This allows us to add an identifier to the toolchain on Windows similar
to the swift.org toolchains generated on macOS. The newly introduced
identifiers should help support having parallel installable toolchains.
2025-01-12 12:11:56 -08:00
Evan Wilde
8130b4f576
Leave reminder to update RuntimeVersions
...
Leave a reminder to update the runtime versions macro file after
updating availability-macros.def.
2025-01-10 21:39:38 -08:00
Guillaume Lessard
18dd091fb8
Merge pull request #78538 from lorentey/define-availability-for-6.2
...
Define placeholder availability for Swift 6.2
2025-01-10 18:09:39 -08:00
Bassam Khouri
d4a09302d6
build script: Update SwiftPM preset
...
Update the mixin_swiftpm_base presets include Swift Testing and Swift
Testing macros.
2025-01-10 13:51:08 -05:00
Alex Hoppen
c0ad0b62b6
[SourceKit] Support Windows for the SourceKit plugin
2025-01-10 19:21:20 +01:00
Karoy Lorentey
f8872c43a7
[stdlib] Define placeholder availability for SwiftStdlib 6.2
2025-01-09 18:18:20 -08:00
Anthony Latsis
28160c9d09
Merge pull request #78049 from AnthonyLatsis/nelumbo-lutea
...
build: Unhardcode Swift source directory name
2025-01-09 11:23:17 +00:00
Evan Wilde
e0e418f5d3
Enable new stdlib build in macOS smoke tests
...
Fixed an issue in the convenience wrapper that resulted in building all
copies of the standard library for the default compiler architecture
instead of the desired architecture. To fix this, we pull the desired
target triple and deployment target from the existing variables and pass
that into the CMake invocation.
2025-01-08 16:23:02 -08:00
Alex Hoppen
2447e74d47
[SourceKit] Install sourcekit-inproc into toolchain
2025-01-08 23:13:15 +01:00
Anthony Latsis
4a5e0daa9d
build: Unhardcode Swift source directory name
...
This is useful if you maintain several swift worktrees that reside in
the source root directory.
2025-01-07 09:58:47 +00:00
Saleem Abdulrasool
a6ff5db30c
utils: update short name for Android
...
Update the shortnames used for the android SDK builds to allow building
the SDK properly.
2025-01-06 14:25:29 -08:00
Evan Wilde
cace199e0e
Merge pull request #78433 from etcwilde/ewilde/force-response-file-on-windows
...
Use Response file for SwiftFoundation
2025-01-04 09:54:32 -08:00
Evan Wilde
1668373895
Use Response file for SwiftFoundation
...
The command-line length to compile SwiftFoundation for arm64
exceeds the maximum command-line length on Windows.
Force CMake to use a response file to get around this limitation.
2025-01-03 19:21:51 -08:00
Hamish Knight
ddfe63bdc8
[xcodegen] Avoid tracking inferArgs per target/source
...
This is unnecessary since we never configure it
per target, just check the global setting.
2025-01-02 15:06:24 +00:00
Hamish Knight
38c1d28197
[xcodegen] Fix hasPrefix for paths
...
The intention here was to do a component-wise
prefix check, not sure why I did a string prefix
check. Switch to component prefix and rename to
`starts(with:)` to match `FilePath`.
2025-01-02 15:06:24 +00:00
Hamish Knight
b3b538ef62
[xcodegen] Generalize target naming deduplication
2025-01-02 15:06:24 +00:00
Yuta Saito
57cc7c28b9
CI: Add --sourcekit-lsp-verify-generated-files build-script option
...
To verify that autogenerated files in the source tree match the ones that
would be generated from source.
2024-12-21 19:03:07 +00:00
Henrik G. Olsson
ef9d2b744d
Rename pointer bounds ( #78210 )
...
* Make pointer bounds non-experimental
* Rename @PointerBounds to @_SwiftifyImport
* Rename filenames containing PointerBounds
* Add _PointerParam exception to stdlib ABI test
* Add _PointerParam to stdlib API changes
* Rename _PointerParam to _SwiftifyInfo
2024-12-20 11:36:01 +01:00
Hiroshi Yamauchi
7ba44982f0
Merge pull request #78249 from hjyamauchi/nativearm64
...
Fix the runtime and the SDK paths for the swift build compiler case
2024-12-19 12:37:46 -08:00
Hamish Knight
a3d9776284
Merge pull request #78291 from hamishknight/minor-xcodegen-optimization
...
[xcodegen] Avoid an intermediate String
2024-12-19 16:26:44 +00:00
Hamish Knight
1667925c9b
[xcodegen] Avoid an intermediate String
...
We don't need to create an intermediate String
when escaping characters in the plist.
2024-12-19 12:35:12 +00:00
Hiroshi Yamauchi
4a98e371fe
Fix the runtime and the SDK paths for the swift build compiler case
...
This fix is necessary for the native win arm64 build where arm64 isn't
the first in the WindowsSDKs list.
2024-12-18 15:56:08 -08:00
Max Desiatov
6c8b958e65
build-script: fix trailing newlines in --preset-vars-file ( #78270 )
...
Currently, usage of `--preset-vars-file` (added in https://github.com/swiftlang/swift/pull/76058 ) introduces newlines in values of preset variables passed via this file. Calling `strip()` will remove trailing and preceding whitespace characters, including newlines.
2024-12-18 11:51:01 -08:00
Saleem Abdulrasool
577945df01
Merge pull request #77624 from compnerd/lmdb
...
utils: adjust Windows build to use shared LMDB
2024-12-18 10:05:36 -08:00
Ben Barham
9a5d8cb086
Merge pull request #78259 from bnbarham/no-swift-strip
...
[Build] Do not strip swift prefix for WASI SDK bundle
2024-12-18 10:05:15 -08:00
Meghana Gupta
aaaf5a4916
Merge pull request #78260 from meg-gupta/enableedgecase
...
Allow SimplifyCFG::simplifyArgument on borrowed values
2024-12-17 20:59:31 -08:00
Meghana Gupta
4299974bf1
Skip building xros in macos_only preset
2024-12-17 15:03:11 -08:00
Ben Barham
c628c9e8e0
[Build] Do not strip swift prefix for WASI SDK bundle
...
Match the static Linux SDK - leave the `swift-` prefix on the generated
artifact bundle.
2024-12-17 14:47:34 -08:00
Mishal Shah
99db0023b5
Merge pull request #77865 from kateinoigakukun/yt/update-wasi-libc-24
...
Bump `wasi-libc` to `wasi-sdk-24` in `update-checkout-config.json`
2024-12-17 01:37:17 -08:00
Doug Gregor
df3f45a113
Merge pull request #78198 from DougGregor/unsafe-fixes
...
Collected fixes for `@unsafe` and the Fix-Its it emits
2024-12-16 16:20:36 -08:00
Hamish Knight
f6304a0b9a
Merge pull request #78194 from hamishknight/xcodegen-runtimes
...
[xcodegen] Add support for new 'Runtimes' build
2024-12-16 21:36:40 +00:00
Hamish Knight
33e8c2fb83
Merge pull request #78204 from hamishknight/buildable-folder-cleanup
...
[xcodegen] Clean up buildable folder checking a bit
2024-12-16 02:21:50 +00:00
Hamish Knight
a7b34855ed
[xcodegen] Allow swift-plugin-server to be added
...
Previously we would avoid adding this since it has
an invalid module name, but we can follow the same
logic as the driver and set the module name to
`main`.
2024-12-15 18:31:49 +00:00
Hamish Knight
14aec1bd3d
[xcodegen] Clean up buildable folder checking a bit
...
Factor out the checking and consistently apply the
"all sources files must be covered" rule across
both Clang and Swift targets.
2024-12-15 17:47:54 +00:00
Doug Gregor
528d642fc5
Make the Fix-It JSON writer produce proper JSON
...
While here, also sort and deduplicate output entries, and stop having
the Python script try to
The Python script is still messing up the files in some cases, but
I haven't tracked it down. Instead, I have a small Swift program
that does the same thing more easily.
2024-12-14 21:49:57 -08:00
Anthony Latsis
7f50c1ebfe
Merge pull request #78108 from AnthonyLatsis/coffea-arabica
...
xcodegen: Show absolute path in skipping warning
2024-12-15 02:15:56 +00:00
Hamish Knight
5408b1643a
[xcodegen] Add support for new 'Runtimes' build
...
Generate a new 'SwiftRuntimes' xcodeproj if a build directory
for 'Runtimes' is specified with `--runtimes-build-dir`, along with a
combined 'Swift+Runtimes' workspace.
2024-12-14 21:28:59 +00:00
Hamish Knight
486cd42bba
[xcodegen] Avoid buildable folders for mixed Swift targets
...
If a Swift target has sources in its folder that
aren't part of the target, we can't form a buildable
folder.
2024-12-14 19:53:51 +00:00
Hamish Knight
54bf65b2e9
[xcodegen] Include Obj-C(++) sources
...
Can't believe I missed these for so long.
2024-12-14 19:53:51 +00:00
Hamish Knight
71eeb612f0
[xcodegen] Avoid emitting Swift Obj-C header
...
This isn't needed currently and works around
an assertion failure.
2024-12-14 19:53:51 +00:00
Hamish Knight
780a546646
[xcodegen] Restrict dependency computation a bit
...
Only consider `.o` and `.swiftmodule` inputs for now. Previously
we could end up with unnecessary dependencies for e.g plugin
dylibs, but we don't build and patch those in currently.
2024-12-14 19:53:51 +00:00
Hamish Knight
dfe1f9cc53
[xcodegen] Infer project root from xcodegen location
...
Instead of inferring from the build directory location,
infer from the location of swift-xcodegen itself since
we know that's in the swift repo.
2024-12-14 14:30:55 +00:00
Hiroshi Yamauchi
d482ab73bc
Update the pinned toolchain for Windows and enable SwiftCompilerSources for Win/ARM64
2024-12-13 09:24:44 -08:00
finagolfin
21832cb6d2
Merge pull request #78013 from marcprux/patch-3
...
Update buildbot_linux_crosscompile_android preset
2024-12-11 20:14:53 +05:30