Swift 5.10 Release
shahmishal
released this
06 Mar 16:09
·
470 commits
to main
since this release
What's Changed
- NFC: Fix comment header in SwiftDriverExecutor.swift by @MaxDesiatov in #1316
- Allow clients of
Driver
to passDiagnosticsHandler
by @MaxDesiatov in #1317 - [Explicit Modules] Have
-clang-target
on Darwin platforms set to the SDK version by-default by @artemcm in #1274 - Update the Swift help message to include
swift --version
by @shahmishal in #1321 - SwiftDriver: add support for baremetal targets (to reflect swiftlang/swift#35970) by @kubamracek in #1313
- Propagate sanitizer arguments to the clang-linker-driver invocations for dynamic libraries by @artemcm in #1325
- [Dependency Scanning] Remove coarse-grained synchronization on all dependency scan queries by @artemcm in #1319
- Find blocklist files from toolchain dir and feed them to compiler by @nkcsgexi in #1329
- Add
-gcc-toolchain
flag to swift-driver by @etcwilde in #1307 - Add generated file note to Options.swift by @etcwilde in #1330
- Support building this repo for more platforms, by checking the build triple by @finagolfin in #1294
- [Explicit Module Builds] Remove logic for Swift-client-specific Clang module dependency jobs by @artemcm in #1332
- Always quote path arguments when resolving command-lines for libSwiftScan queries by @artemcm in #1335
- Use DarwinToolchain for apple-none targets by @rauhul in #1331
- [Macros] Set -external-plugin-path when the toolchain is not Xcode by @rintaro in #1320
- Use system-appropriate method when quoting path arguments on command-lines by @artemcm in #1343
- Do not attempt to create compilation jobs when no Swift source files are specified as inputs by @artemcm in #1347
- In WMO, make sure the dummy "primary" compilation input is a Swift source file by @artemcm in #1346
- Revert "In WMO, make sure the dummy "primary" compilation input is a Swift source file" by @DougGregor in #1348
- Avoid quoting paths for dependencies scanning jobs by @nkcsgexi in #1351
- In WMO, make sure the dummy "primary" compilation input is a Swift source file by @artemcm in #1350
- [Dependency Scanning] Unify path-escaping handling using TSC's spm_shellEscaped by @artemcm in #1354
- build-script-helper.py: remove unused
distutils
import by @MaxDesiatov in #1353 - Disable adding '-external-plugin-path' in integrated driver mode by @rintaro in #1356
- Specify encoding when running a ninja invocation by @ahoppen in #1358
- Revert "[Macros] Set -external-plugin-path when the toolchain is not Xcode" by @rintaro in #1359
- Add support for compatibility shims that we don't want to -force-load by @slavapestov in #1361
- Update requirements in
Package.swift
to match SwiftPM by @MaxDesiatov in #1338 - [NFC] Package.swift: fix deprecated dependency initializers by @MaxDesiatov in #1366
- [Dependency Scanning] Add support for Swift Overlay dependencies as a separate dependency details field by @artemcm in #1365
- Add option
-explain-module-dependency
to explain a given direct or transitive module dependency by @artemcm in #1363 - Add ignorable private flag to driver to match changes in frontend by @elsh in #1344
- Allow unicode chars in package-name in driver by @elsh in #1367
- Parse additional armv6 and armv7 subarchs by @rauhul in #1369
- [cxx-interop] make -emit-clang-header-path a driver flag by @hyp in #1371
- Formatting: remove trailing whitespaces by @MaxDesiatov in #1370
- SwiftDriver: mark bitcode interfaces as
internal
by @compnerd in #1376 - Android: look in lib/linux/ for the LLVM sanitizers instead by @finagolfin in #1372
- [Explicit Module Builds] Add support for header dependencies of binary Swift module dependencies by @artemcm in #1375
- Add SDK and platform paths to plugin executables by @DougGregor in #1377
- Remove unused runtime library path on non-Darwin platforms by @finagolfin in #1374
- Triple.swift: fix typos in local and private names by @MaxDesiatov in #1384
- Add support for Musl libc by @MaxDesiatov in #1385
- Add
repl
to swift-help topics by @bitjammer in #1382 - Tweak testWMOWithJustObjectInputs test to not count autolink-extract jobs by @artemcm in #1388
- Fix a non-deterministic failure in testPrintingExplicitDependencyGraph by @cachemeifyoucan in #1389
- Driver: allow static executables when using Musl by @MaxDesiatov in #1383
- Fix Wasm capitalization in code comments by @MaxDesiatov in #1391
- [Driver] For immediate mode prefer using the default SDK over the
SDKROOT
variable by @akyrtzi in #1390 - Set Explicit Incremental Module Build tests to use own module cache by @artemcm in #1392
- [Explicit Modules] Handle re-mapped platform versions when specifying SDK-aligned
-clang-target
on Darwin platforms by @artemcm in #1394 - Downgrade priors version mismatch warning by @keith in #1396
- [Macros on Darwin] Use device platform paths when building for the simulator by @DougGregor in #1400
- Support Swift CompileJob Caching by @cachemeifyoucan in #1393
- swift-help: use the executable suffix on Windows by @compnerd in #1405
- Update Options.swift for '-load-plugin-executable' update by @rintaro in #1409
- Teach version requests to include the version of the separately installed blocklist by @nkcsgexi in #1411
- [Dependency Scanning] Add option to specify a separate Clang Dependency scanner module cache. by @artemcm in #1408
- Add missing dependency by @neonichu in #1414
- [Explicit Module Builds][Incremental Builds] Only re-build module dependencies which have changed or whose dependencies have changed. by @artemcm in #1413
- [Explain Dependency] Fix 'testTraceDependency' to account for Swift Overlay dependencies being separate from direct import dependencies. by @artemcm in #1417
- Deprecate -warn-on-potentially-unavailable-enum-case option by @tshortli in #1418
- Add -experimental-lazy-typecheck option by @tshortli in #1419
- Tests: Address warnings about unused results and variables by @tshortli in #1421
- Pass -experimental-lazy-typecheck to -emit-module jobs by @tshortli in #1423
- Fix comment typo in
Triple+Platforms.swift
by @MaxDesiatov in #1425 - NFC: Consolidate the code for adding symbol graph related options to a job by @tshortli in #1426
- Jobs: support multiple lookup paths by @compnerd in #1428
- [Caching] Fix caching tests on windows hosts by @cachemeifyoucan in #1427
- [Options] Fix makeOptions after upstream Option TableGen change by @cachemeifyoucan in #1429
- Disable '-static' flag check on the executable against MUSL test by @artemcm in #1432
- Forward --ld-path to linker driver by @kabiroberai in #1416
- SwiftDriver: speculative changes to support Windows macros by @compnerd in #1433
- Improve swift-driver test cases to avoid fatal crash by @cachemeifyoucan in #1434
- [makeOptions] Add new enum from swift Options by @cachemeifyoucan in #1437
- [Caching] Support pluginCAS in swiftDriver by @cachemeifyoucan in #1422
- [ELF] Don't pass ELF shared objects to autolink-extract by @drodriguez in #1407
- [Explicit Module Builds] Fix topological sort of inter-module dependency graph to account for Swift overlay dependencies by @artemcm in #1438
- Update dependencies to track
release/5.10
by @ahoppen in #1440 - [5.10] Make
--ld-path
option consistently use single dash by @MaxDesiatov in #1442 - [5.10 🍒][ExplicitModuleBuilds][Tests] Remove test of prior approach at handling dependency PCH by @artemcm in #1464
- [5.10] Add -experimental-skip-non-exportable-decls to lazy typechecking emit module jobs by @tshortli in #1466
- [5.10] Fix forwarding of
-ld-path
by @MaxDesiatov in #1454 - [5.10] Remove special handling of the -experimental-lazy-typecheck flag by @tshortli in #1469
- [5.10][Build Script Helper] Use new SwiftPM flag to remove
$ORIGIN
from installed ELF executable runpaths by @finagolfin in #1470 - [5.10] Update Options.swift for '-disable-sandbox' by @rintaro in #1493
- [5.10] Don't add an autolink-extract job unless actually linking ELF/Wasm objects, matching the original C++ driver by @finagolfin in #1480
- For scripts, use DYLD_FRAMEWORK/LIBRARY_PATH to find frameworks / runtimes. by @lhames in #1531
New Contributors
- @rauhul made their first contribution in #1331
- @ahoppen made their first contribution in #1358
- @drodriguez made their first contribution in #1407
Full Changelog: swift-5.9.2-RELEASE...swift-5.10-RELEASE