Commit Graph

7207 Commits

Author SHA1 Message Date
Kavon Farvardin
fa6400e27a build swiftdriver for lldb pull requests
The old Swift Driver is basically EoL.
2023-12-05 15:39:17 -08:00
Saleem Abdulrasool
7978272185 utils: integrate support for caching when building
Integrate support for sccache into the build system.  This allows us to
get a reasonable performance increase for clean builds for the C/C++
side of the build.  This is currently limited to the MSVC compiler as
the extended compiler flags cause issues for sccache.
2023-12-04 08:00:36 -08:00
Saleem Abdulrasool
61bf9a4380 Update build.ps1
Update the variables for the pinned-toolchain usage to correctly specify the compilers.  Additionally use the new helpers to work with the new toolchain layout as well.
2023-12-02 19:33:28 -08:00
Saleem Abdulrasool
ecc302b7d7 Merge pull request #69743 from tristanlabelle/tristan/build.ps1-vcredist-msms
Update build.ps1 for installer changes for VCRuntime dlls
2023-11-30 08:35:44 -08:00
Karoy Lorentey
958a7f04c9 Merge pull request #69714 from lorentey/update-stdlib-packages
[main, rebranch, next] Update to latest releases of swift-atomics, swift-collections, swift-numerics, swift-system
2023-11-29 23:43:13 -05:00
Hiroshi Yamauchi
5009b006a1 Merge pull request #70050 from hjyamauchi/nativearm64build
Support the new installer layout for the pinned toolchain in build.ps1.
2023-11-29 17:39:17 -08:00
Saleem Abdulrasool
d1bb5f68db Merge pull request #69960 from compnerd/tools
build: disable additional pieces for the build tools phase
2023-11-29 13:42:23 -08:00
Saleem Abdulrasool
652564ed25 Merge pull request #70077 from apple/compnerd/curl
build: enable HTTPS for CURL again
2023-11-28 20:47:00 -08:00
Hiroshi Yamauchi
0150d0d3c5 Support the new installer layout for the pinned toolchain in build.ps1.
This fixes the native Windows ARM64 build.
2023-11-28 15:46:13 -08:00
Adrian Prantl
f230da66b0 Merge pull request #70066 from ahoppen/ahoppen/update-checkout
Update release/5.10 for update-checkout
2023-11-28 15:18:54 -08:00
Saleem Abdulrasool
e575578792 build: enable HTTPS for CURL again
Adjust the flags for the updated CURL version.  It seems that we accidentally disabled HTTPS support in the CURL builds with the last update.  This is required for `URLSession` and `URLRequest` to support HTTPS.
2023-11-28 14:14:13 -08:00
Alex Hoppen
39df3c0b23 Update release/5.10 for update-checkout
The `release/5.10` specification of update-checkout on the `main` branch was out-of-date and didn’t clone e.g. `zlib`. This caused CI testing for the `release/5.10` branch of swift-syntax to fail.
2023-11-28 11:15:42 -08:00
Doug Gregor
0eb71d1c03 Merge pull request #70034 from DougGregor/function-body-macros
Function body macros
2023-11-28 09:43:40 -08:00
Doug Gregor
de186fd68a Add RISCV to standard set of architectures for incremental buildbots 2023-11-27 22:18:24 -08:00
Doug Gregor
36a2dcd927 Implement function body macros
Function body macros allow one to introduce a function body for a
particular function, either providing a body for a function that
doesn't have one, or wholesale replacing the body of a function that
was written with a new one.
2023-11-27 17:04:55 -08:00
Andrew Trick
340b7b710d Merge pull request #69972 from atrick/fix-lint
Fix lit test Python/python_lint.swift
2023-11-27 13:22:47 -08:00
Karoy Lorentey
8d7e67ddf5 [main, rebranch, next] Update to latest releases of swift-atomics, swift-collections, swift-numerics, swift-system 2023-11-27 11:34:24 -08:00
Andrew Trick
97b781626f Fix lit test Python/python_lint.swift
./utils/cmpcodesize/cmpcodesize/main.py:20:71: E231 missing whitespace after ','

./utils/round-trip-syntax-test:20:20: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`

./utils/round-trip-syntax-test:21:16: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`

I can't find any uses of round-trip-syntax-test, so I don't know if
this fix is correct.
2023-11-17 16:53:49 -08:00
Tristan Labelle
9c7872788c build.ps1: Build installer wixproj as bundle 2023-11-17 17:00:41 -05:00
Saleem Abdulrasool
e3ecce14eb build: disable additional pieces for the build tools phase
This reduces the configure time and reduces the pieces that may check
for dependencies as we are growing the dependencies on Swift.
2023-11-17 09:10:17 -08:00
Alex Hoppen
50216063c2 Merge pull request #69892 from ahoppen/ahoppen/swift-syntax-dev-utils-vv
[swift-syntax] Run `swift run` with `--vv`
2023-11-15 14:59:13 -08:00
Mishal Shah
412a828592 update icu tag for release/5.10 2023-11-15 12:00:06 -08:00
Alex Hoppen
5b98af866f [swift-syntax] Run swift run with --vv
This should help us figure out what’s going wrong in rdar://118460218.
2023-11-15 11:07:22 -08:00
Adrian Prantl
71bbe17dc2 Merge pull request #69679 from adrian-prantl/precise-compiler-invocation
Extend the LLDB test matrix to support precise compiler invocations.
2023-11-15 08:46:06 -08:00
Alex Hoppen
9ccb2ef65c Merge pull request #69784 from ahoppen/ahoppen/remove-syntacticrename
Remove the `source.request.syntacticrename` request
2023-11-14 14:14:07 -08:00
Saleem Abdulrasool
8f7d3fca24 build: add additional logging when extracting the MSIs
This adds additional logging for the extraction and explicitly marks the
extraction as per-machine.
2023-11-14 07:02:44 -08:00
Saleem Abdulrasool
1abe96add2 utils: add --reset-to-remote to update-checkout invocation
Add `--reset-to-remote` to the `update-checkout` invocation to ensure
that the state of the tree is reset.  This should help avoid some of the
failures that we occassionally see with the builders being left in a
modified state.
2023-11-13 09:09:55 -08:00
Alex Hoppen
4c1d875cf8 Remove the syntacticrename request
`source.request.find-syntactic-rename-ranges` should be used instead.
2023-11-10 11:46:47 -08:00
Saleem Abdulrasool
d2e22148f8 Merge pull request #69744 from stevapple/inspect-local-deps
Add support for `SWIFTCI_USE_LOCAL_DEPS` in `swift-inspect`
2023-11-10 05:25:10 +00:00
Ben Barham
9ea3146904 Merge pull request #69564 from finagolfin/early-driver
[Build] Enable building the early Swift Driver on linux with the prebuilt host toolchain
2023-11-09 14:36:27 -08:00
YR Chen
be5a06555f Add support for SWIFTCI_USE_LOCAL_DEPS in swift-inspect
If the `SWIFTCI_USE_LOCAL_DEPS` environment variable is set, we're building in the Swift.org CI system alongside other projects in the Swift toolchain and we can depend on local versions of our dependencies instead of fetching them remotely.
2023-11-09 20:02:14 +08:00
Tristan Labelle
258c420349 Update build.ps1 for installer changes for VCRuntime merge modules 2023-11-09 06:22:06 -05:00
Mike Ash
967c5c6a75 Merge pull request #69542 from mikeash/retain-release-override-optional
[Runtime] Add option to remove override point for retain/release.
2023-11-08 19:51:29 -05:00
Adrian Prantl
d3f6ca5683 Extend the LLDB test matrix to support precise compiler invocations. 2023-11-08 16:32:17 -08:00
Saleem Abdulrasool
1a191939c9 Merge pull request #69695 from readdle/lxbndr/helper-help
utils: adjust build.ps1 help invocation in helper launcher
2023-11-08 22:52:46 +00:00
swift-ci
e055e58ade Merge pull request #69723 from adrian-prantl/dwarfimport-repl-tests
Only rerun the API tests in dwarfimporter-only mode.
2023-11-08 14:10:10 -08:00
Yuta Saito
6282353c69 Merge pull request #66761 from kateinoigakukun/pr-8636136fb8ef046614b922dd371e852f68bdfac9
[Installer] Do not follow an existing symbolic link when overwriting
2023-11-09 07:02:58 +09:00
Adrian Prantl
c6cceaf3c7 Only rerun the API tests in dwarfimporter-only mode.
This removes >70 tests from the list of tests that are being rerun.  The REPL
doesn't really benefit from DWARFImporter, since there is no deb ug info in the
victim process, so it makes no sense to test this configuration.
2023-11-08 09:27:25 -08:00
Finagolfin
a03f6e5b3a [Build] Enable building and CI testing the early Swift Driver on linux with the prebuilt host toolchain 2023-11-08 20:09:59 +05:30
Alexander Smarus
065ebc4a86 utils: adjust build.ps1 help invocation in helper launcher
As the helper script could (and probably always would) be launched from
a directory outside of the source tree, it is convenient to use an absolute path
in Get-Help invocation, just like we do in the `build.ps1` invocation below.
Also, quoting might be necessary for paths with spaces.
2023-11-07 16:09:36 +02:00
Saleem Abdulrasool
2e348d2bc0 Merge pull request #69575 from compnerd/stage
build: adjust the installer build and artifact staging
2023-11-07 13:44:42 +00:00
Saleem Abdulrasool
c80901b17e Merge pull request #69651 from compnerd/shaving
build: tweak the Windows build to build against the internal swift-syntax
2023-11-06 05:12:20 -08:00
Saleem Abdulrasool
48715298d4 build: add additional download checking for the image
Ensure that the downloaded image matches the expected image.  This
ensures that we catch download errors as well as provides some level of
security by requiring that the download checksum matches.
2023-11-05 08:51:34 -08:00
Saleem Abdulrasool
f7cd9ab1c0 build: tweak the Windows build to build against the internal swift-syntax
Use the internal copy of swift-syntax that the compiler uses for macros
to build the LSP. By sharing the swift-syntax build, we shave ~6MiB off
the LSP binary. Additionally, we avoid building swift-syntax twice as a
single copy is now used.
2023-11-03 16:02:56 -07:00
Anthony Latsis
da6dff3ef5 Merge pull request #68713 from AnthonyLatsis/test-generate-xcode 2023-11-03 23:57:20 +03:00
Saleem Abdulrasool
5da8b3fa09 build: adjust the installer build and artifact staging
Adjust the installer to allow it to be built for foreign architectures.
Additionally, adjust the artifact staging to include additional content
that was missed previously in order to enable code signing.
2023-11-03 13:24:09 -07:00
Saleem Abdulrasool
7ad55267e9 build: add more checking for errors
Apply more error checking to ensure that failures do not slip through
the various layers of invocation.
2023-11-02 10:32:19 -07:00
Saleem Abdulrasool
cb4d0b930b update_checkout: update the next scheme to match main
Update next to match main for dependencies. This includes:
- CURL
- ICU
- libxml2
- zlib
2023-11-01 14:38:10 -07:00
Saleem Abdulrasool
247d56847d build: update update-checkout to ICU 69
Unify the non-Darwin targets to ICU 69. Windows has been using ICU 69
since 5.3, Linux was at 65.
2023-11-01 14:16:15 -07:00
Saleem Abdulrasool
4fb2614e6c build: update build.ps1, use update-checkout for more dependencies
Update the build.ps1 to match the current state which introduces
`-BuildTo` and updates most of the dependencies. Take the opportunity to
migrate to update-checkout for the majority of the dependencies. The
SQLite amalgamation and installer image are still fetched later, and ICU
is still cloned in the CI wrapper.
2023-11-01 14:16:15 -07:00