Commit Graph

7219 Commits

Author SHA1 Message Date
Alex Lorenz
9db866f881 Merge pull request #70524 from hyp/eng/pdb-for-all-of-us
[windows][build] pass the /debug flag to the linker
2023-12-18 19:01:59 -08:00
Alex Lorenz
d2c897a1a1 [windows][build] pass the /debug flag to the linker
when building with debug information enabled

This ensures that every executable and dll get a corresponding
PDB file with the debug information.
2023-12-18 13:01:30 -08:00
Saleem Abdulrasool
ef1f9ebcb5 Merge pull request #70497 from compnerd/testing
build: add support for testing more of the compilers on Windows
2023-12-15 15:55:19 -08:00
Saleem Abdulrasool
96f1a449f5 build: add support for testing more of the compilers on Windows
This adds the ability to conditionally run the test suite for LLVM, LLD,
LLDB, Clang, and Swift.  This will allow us to increase the test
coverage in CI to avoid regressions.
2023-12-15 09:53:54 -08:00
Ian Anderson
35eb5cb7f4 Merge pull request #69707 from ian-twilightcoder/builtin-flag
[ClangImporter] Swift needs to pass `-Xclang -fbuiltin-headers-in-system-modules` for its module maps that group cstd headers
2023-12-12 11:35:17 -08:00
Alejandro Alonso
bf102d2079 Merge pull request #69765 from Azoy/abi-checker-but-for-real
[ABI] Introduce an ABI checker that diffs symbols
2023-12-11 12:20:59 -08:00
Ian Anderson
94e860e795 [ClangImporter] Swift needs to pass -Xclang -fbuiltin-headers-in-system-modules for its module maps that group cstd headers
Swift has some module maps it overlays on Linux and Windows that groups all of the C standard library headers into a single module. This doesn’t allow clang and C++ headers to layer properly with the OS/SDK modules. clang will set -fbuiltin-headers-in-system-modules as necessary for Apple SDKs, but Swift will need to pass that flag itself when required by its module maps.
2023-12-08 22:33:12 -08:00
Alex Hoppen
a24c563d70 [SourceKit] Allow references to non-editable base names to be returned by the related identifiers request
While we don't want to return non-editable base names for Edit-All-In-Scope, we do want to return them if the related identifiers response is used as the input for find-syntactic-rename-ranges.
2023-12-07 13:12:12 -08:00
Alejandro Alonso
7dd52a219b Remove new symbol and add back old symbol 2023-12-06 09:34:09 -08:00
Alejandro Alonso
f9ebe858d9 Add base file support for assert config 2023-12-05 16:01:34 -08:00
Kavon Farvardin
fa6400e27a build swiftdriver for lldb pull requests
The old Swift Driver is basically EoL.
2023-12-05 15:39:17 -08:00
Alejandro Alonso
20b3c06505 Use llvm-nm and linter changes for abi script 2023-12-04 09:49:07 -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
Alejandro Alonso
13f0ffbc0f Switch to python script and add asserts baselines 2023-12-01 12:48:22 -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