Skip to content

Swift 6.0 Release

Latest
Compare
Choose a tag to compare
@jakepetroules jakepetroules released this 22 Sep 04:23
· 145 commits to main since this release

What's Changed

  • Fix handling of the '--' argument followed by inputs for the immediate compilation mode ('swift') by @artemcm in #1439
  • Make --ld-path option consistently use single dash by @MaxDesiatov in #1441
  • Add test conveniences to SwiftDriverTests by @tshortli in #1443
  • Add .vscode/launch.json to .gitignore by @MaxDesiatov in #1445
  • Replace deprecated uses of <<< with send by @MaxDesiatov in #1444
  • [NFC] Remove unused constant in FirstWaveComputer.swift by @MaxDesiatov in #1446
  • Remove remaining appearences of deprecated 'AbsolutePath' initializer in tests by @artemcm in #1231
  • Remove more appearences of deprecated 'AbsolutePath' and 'RelativePath' intitializers in source and tests by @artemcm in #1450
  • Replace remaining uses of <<< operator with .send by @MaxDesiatov in #1451
  • Fix forwarding of -ld-path to Clang by @kabiroberai in #1447
  • [embedded] A number of changes to support embedded Swift. by @zoecarver in #1455
  • Prebuilt-module-generation: support a mode that aggregates broken interfaces as a JSON output for easy comparision by @nkcsgexi in #1457
  • Introduce -emit-api-descriptor-path option by @tshortli in #1460
  • [ExplicitModuleBuilds][Tests] Remove test of prior approach at handling dependency PCH by @artemcm in #1463
  • Add -experimental-skip-non-exportable-decls to lazy typechecking emit module jobs by @tshortli in #1465
  • [Build Script Helper] Use new SwiftPM flag to remove $ORIGIN from installed ELF executable runpaths by @finagolfin in #1462
  • Remove special handling of the -experimental-lazy-typecheck flag by @tshortli in #1468
  • Make the DWARF version configurable. by @adrian-prantl in #1467
  • Revert "Make the DWARF version configurable." by @adrian-prantl in #1473
  • Revert "Revert "Make the DWARF version configurable."" by @adrian-prantl in #1475
  • Update 'Package.resolved' by @artemcm in #1476
  • Adjust 'makeOptions' to new TableGen format of Swift's 'Options.inc' by @artemcm in #1474
  • Fix typos and warnings in SwiftDriver module and its tests by @MaxDesiatov in #1461
  • Add support for automatically emit API descriptor files by @zixu-w in #1478
  • Don't add an autolink-extract job unless actually linking ELF/Wasm objects, matching the original C++ driver by @finagolfin in #1479
  • Add workaround for 5.8 host swift-driver bug by @hamishknight in #1484
  • [SwiftDriver] PathRemapping and Cache Replay Support by @cachemeifyoucan in #1453
  • Revert "[SwiftDriver] PathRemapping and Cache Replay Support" by @artemcm in #1486
  • Ensure supplementary output file maps associate Swift Source inputs with expected outputs in WMO by @artemcm in #1459
  • build: simplify the build rules (NFC) by @compnerd in #1489
  • Add support for swift caching with path remapping and builtin cache replay by @cachemeifyoucan in #1488
  • Support package interface gen and verification in driver by @elsh in #1487
  • Update Options.swift for '-disable-sandbox' by @rintaro in #1490
  • Do not perform dependency scanning when no source inputs are specified by @artemcm in #1492
  • Remove dependency on swift-system by @neonichu in #1494
  • Avoid generating an interface verification job for a package interface when no such interface is emitted by @artemcm in #1497
  • Revert 'Add missing dependency (#1414)' by @finagolfin in #1481
  • [Caching] Fix incremental cache build with bridging header by @cachemeifyoucan in #1498
  • [Caching] SwiftDriver Caching API refinement for build system by @cachemeifyoucan in #1491
  • build: enable building in Debug mode on Windows by @compnerd in #1496
  • Port over missing debug info driver functionality from the C++ implem… by @adrian-prantl in #1500
  • [SwiftCaching] Don't drop -Xcc during dependency scanning by @cachemeifyoucan in #1501
  • Only specify -dwarf-version if the frontend supports it by @tshortli in #1502
  • build: support building swift-driver outside of the toolchain by @compnerd in #1499
  • [Test] Remap test should be guarded by caching feature by @cachemeifyoucan in #1504
  • Disable CachingBuildTests on windows by @cachemeifyoucan in #1508
  • tests: repair the test suite on Windows by @compnerd in #1506
  • SwiftDriver: repair the generation of CodeView debug info by @compnerd in #1505
  • [Sanitizer] Add new flag -sanitize-stable-abi flag to link against the by @wrotki in #1509
  • Revert "[Driver] For immediate mode prefer using the default SDK over the SDKROOT variable" by @akyrtzi in #1510
  • Don't pass -rpath and -lswiftCore in embedded mode by @MaxDesiatov in #1516
  • Add m68k to Triple.swift by @MaxDesiatov in #1514
  • [CAS] Don't create the same CAS multiple times from the same Oracle by @cachemeifyoucan in #1511
  • [NFC] Add Decodable conformance to Triple.Arch by @MaxDesiatov in #1512
  • [Embedded] correct link paths when building for embedded to avoid stray response file paths by @phausler in #1517
  • [Dependency Scanning] Upon scan failure, ensure scanner diagnostics are emitted by @artemcm in #1518
  • Pass down the -no-verify-emitted-module-interface flag to the frontend by @xymus in #1519
  • Add fallback to auxiliary legacy driver executable on '--disallow-use-new-driver' by @artemcm in #1485
  • Update Options.swift by @tshortli in #1521
  • [Explicit Module Builds] Do not specify Clang dependency module.modulemap files as task inputs by @artemcm in #1522
  • Prefer llvm-ar over ar on WebAssembly by @kateinoigakukun in #1523
  • Remove references to deleted lit-tests of the Legacy driver by @artemcm in #1334
  • [Caching] Adopt new APIs from libSwiftScan for key computation by @cachemeifyoucan in #1503
  • Only run testSanitizeStableAbi on Apple platforms by @wrotki in #1524
  • Fix explicit modules incremental build failure when only the clang module of a mixed-source module requires rebuild by @owenv in #1527
  • For scripts, use DYLD_FRAMEWORK/LIBRARY_PATH to find frameworks / run… by @lhames in #1525
  • Make DependencyScanningError conform to LocalizedError by @cachemeifyoucan in #1528
  • [Caching] Issue a warning when caching build without explicit module by @cachemeifyoucan in #1526
  • When terminating because a subprocess failed, don't print error: fatalError by @DougGregor in #1532
  • Embedded: don't link swiftrt.o for bare metal by @MaxDesiatov in #1533
  • [Explicit Module Builds] Add an instance of InterModuleDependencyGraph to the DriverExecutorWorkload by @artemcm in #1530
  • [SwiftScan] Add APIs to load/check libSwiftScan directly by @cachemeifyoucan in #1529
  • [Explicit Module Builds] Cache explicit dependency additions to main module command-lines by @artemcm in #1535
  • [Caching] Add CAS size management APIs by @cachemeifyoucan in #1536
  • Fix wrong -Xlinker propagation to Clang with WebAssembly by @kateinoigakukun in #1538
  • Port --global-base option for WebAssembly from legacy driver by @kateinoigakukun in #1539
  • [Caching] Disable caching when -disable-bridging-pch is used by @cachemeifyoucan in #1537
  • Execution: special case the first two arguments in RSP mode by @compnerd in #1540
  • [CAS] Fix pluginCAS initialization by @cachemeifyoucan in #1542
  • Verify emitted module interfaces by default and introduce blocklist by @xymus in #1543
  • [Caching] Fix scanner args were dropped when resolveMainModuleDependencies were called multiple times by @cachemeifyoucan in #1544
  • Only pass down the -no-verify-emitted-module-interface flag if the frontend accepts it by @xymus in #1548
  • Propagate the -no-allocations frontend flag to the frontend by @kubamracek in #1546
  • Passthrough -tools-directory as -B to clang linker for Wasm target by @kateinoigakukun in #1551
  • [Dependency Scanning] Add and use API for per-query diagnostic gathering by @artemcm in #1552
  • [Caching] Move unsupportedCachingConfiguration to be scanning error by @cachemeifyoucan in #1553
  • Set stdout and stderr encodings to UTF-8 in build-script-helper.py by @tshortli in #1554
  • Avoid ascii/utf encoding errors on some systems by @kastiglione in #1555
  • Tests: repair test for Windows by @compnerd in #1556
  • Don't normalize *-unknown-windows-coff as *-unknown-windows-msvc by @MaxDesiatov in #1558
  • Compute and append -file-compilation-dir when -g options are used by @cachemeifyoucan in #1557
  • [Caching] Remap the path in -file-compilation-dir if needed by @cachemeifyoucan in #1559
  • Update driver for fully static Linux. by @al45tair in #1549
  • [6.0] Change dependency on swift-tools-support-core to release/6.0 by @ahoppen in #1566
  • [6.0] Stop adding '-external-plugin-path' to SDK directories by @rintaro in #1574
  • [6.0πŸ’][Explicit Module Builds][SwiftDrver] Cherry-pick Explicit Module Loading fixes and improvements by @artemcm in #1575
  • [6.0][Caching] SwiftDriver changes for caching support by @cachemeifyoucan in #1572
  • [6.0][Tests] Support for binary module validation in scanner by @cachemeifyoucan in #1584
  • [6.0 πŸ’] Introduce VisionOS Platform by @artemcm in #1585
  • [6.0][Caching] Remove the error for creating multiple CAS at same location by @cachemeifyoucan in #1587
  • [6.0] Prefer toolchain's plugins to SDK plugins if the toolchain has stdlib by @ktoso in #1592
  • [6.0][CAS] Fix task continuation misuse when CAS error happens by @cachemeifyoucan in #1593
  • [6.0πŸ’] Fix parsed name of the newly-added SDKPlatformKind to use raw toolchain name by @artemcm in #1599
  • [6.0πŸ’] Do not warn on failure to in-process query target info or supported features by @artemcm in #1600
  • [6.0][Caching] Handle emit module job correctly for swift caching by @cachemeifyoucan in #1603
  • [6.0πŸ’] Fallback on swift-frontend -scan-dependencies ... fallback path in case libSwiftScan shared library cannot be loaded. by @artemcm in #1607
  • [6.0] Schedule an emit-module-separately job even if an input is not compilable by @xymus in #1589
  • Adds valid arguments to -sanitize-coverage: pc-table and inline-8bit-counter. by @thetruestblue in #1611
  • [6.0][Option] Support MultiArg options by @cachemeifyoucan in #1612
  • [6.0] Options: sync-with compiler repo about recent option updates by @nkcsgexi in #1618
  • [6.0 πŸ’][Explicit Module Builds] Get source locations from the dependency scanner and emit diagnostics with them by @artemcm in #1620
  • [6.0] Improve performance of precompiled module invalidation in incremental builds by @owenv in #1627
  • [6.0 πŸ’][Explicit Module Builds][Incremental Builds] Re-compile module dependencies whose dependencies are up-to-date themselves but are newer by @artemcm in #1629
  • [6.0 πŸ’][SwiftScan] Fix headerDependencies in SwiftPrebuiltExternalModuleDetails by @cachemeifyoucan in #1634
  • Bump the DWARF version number to 5 on Darwin. by @adrian-prantl in #1635
  • [6.0] Response files should be named using the hash of the command line arguments only by @owenv in #1639
  • Ignore prebuilt module cache when building the prebuilt module cache by @DougGregor in #1650
  • [6.0 πŸ’][PrebuiltModuleGen] Ensure the dependency scanner always ignores existing prebuilt modules by @artemcm in #1652
  • [6.0 πŸ’][Explicit Module Builds] Remove dead/incorrect code for handling header inputs of binary module dependencies by @artemcm in #1654
  • [6.0] Pass -lld-allow-duplicate-weak for coverage on Windows by @hamishknight in #1657
  • [6.0 πŸ’][Test Only] Make CachingBuildTests.testDependencyScanning be adaptable to scanner diagnostic revisions by @artemcm in #1659
  • [6.0] Allow enabling embedded Swift without WMO when not generating SIL by @owenv in #1666
  • [6.0] Import new Android overlay or Bionic module by @finagolfin in #1660
  • [6.0πŸ’] Resolve main executable symlink when looking up driver-adjacent subcommand binaries by @artemcm in #1606

New Contributors

Full Changelog: swift-5.10.1-RELEASE...swift-6.0-RELEASE