├── .editorconfig ├── .gitattributes ├── .gitignore ├── CMakeLists.txt ├── LICENSE.txt ├── Package.resolved ├── Package.swift ├── README.md ├── Sources ├── CMakeLists.txt ├── CSwiftScan │ ├── CMakeLists.txt │ ├── CSwiftScanImpl.c │ └── include │ │ ├── module.modulemap │ │ └── swiftscan_header.h ├── SwiftDriver │ ├── CMakeLists.txt │ ├── Driver │ │ ├── CompilerMode.swift │ │ ├── DebugInfo.swift │ │ ├── Driver.swift │ │ ├── DriverVersion.swift │ │ ├── LinkKind.swift │ │ ├── ModuleOutputInfo.swift │ │ ├── OutputFileMap.swift │ │ ├── ToolExecutionDelegate.swift │ │ └── WindowsExtensions.swift │ ├── Execution │ │ ├── ArgsResolver.swift │ │ ├── DriverExecutor.swift │ │ ├── ParsableOutput.swift │ │ └── ProcessProtocol.swift │ ├── ExplicitModuleBuilds │ │ ├── ExplicitDependencyBuildPlanner.swift │ │ ├── InterModuleDependencies │ │ │ ├── CommonDependencyOperations.swift │ │ │ ├── InterModuleDependencyGraph.swift │ │ │ └── InterModuleDependencyOracle.swift │ │ ├── ModuleDependencyScanning.swift │ │ └── SerializableModuleArtifacts.swift │ ├── IncrementalCompilation │ │ ├── Bitcode │ │ │ ├── Bitcode.swift │ │ │ ├── BitcodeElement.swift │ │ │ ├── Bits.swift │ │ │ ├── Bitstream.swift │ │ │ ├── BitstreamReader.swift │ │ │ ├── BitstreamVisitor.swift │ │ │ ├── BitstreamWriter.swift │ │ │ └── BlockInfo.swift │ │ ├── BuildRecord.swift │ │ ├── BuildRecordInfo.swift │ │ ├── DependencyGraphDotFileWriter.swift │ │ ├── DependencyKey.swift │ │ ├── DirectAndTransitiveCollections.swift │ │ ├── ExternalDependencyAndFingerprintEnforcer.swift │ │ ├── FirstWaveComputer.swift │ │ ├── IncrementalCompilationProtectedState.swift │ │ ├── IncrementalCompilationState+Extensions.swift │ │ ├── IncrementalCompilationState.swift │ │ ├── IncrementalCompilationSynchronizer.swift │ │ ├── IncrementalDependencyAndInputSetup.swift │ │ ├── InputInfo.swift │ │ ├── KeyAndFingerprintHolder.swift │ │ ├── ModuleDependencyGraph.swift │ │ ├── ModuleDependencyGraphParts │ │ │ ├── DependencySource.swift │ │ │ ├── Integrator.swift │ │ │ ├── InternedStrings.swift │ │ │ ├── Node.swift │ │ │ ├── NodeFinder.swift │ │ │ └── Tracer.swift │ │ ├── Multidictionary.swift │ │ ├── SourceFileDependencyGraph.swift │ │ ├── SwiftSourceFile.swift │ │ ├── TwoDMap.swift │ │ └── TwoLevelMap.swift │ ├── Jobs │ │ ├── APIDigesterJobs.swift │ │ ├── AutolinkExtractJob.swift │ │ ├── CommandLineArguments.swift │ │ ├── CompileJob.swift │ │ ├── DarwinToolchain+LinkerSupport.swift │ │ ├── EmitModuleJob.swift │ │ ├── EmitSupportedFeaturesJob.swift │ │ ├── FrontendJobHelpers.swift │ │ ├── GenerateDSYMJob.swift │ │ ├── GeneratePCHJob.swift │ │ ├── GeneratePCMJob.swift │ │ ├── GenericUnixToolchain+LinkerSupport.swift │ │ ├── InterpretJob.swift │ │ ├── Job.swift │ │ ├── LinkJob.swift │ │ ├── MergeModuleJob.swift │ │ ├── ModuleWrapJob.swift │ │ ├── Planning.swift │ │ ├── PrebuiltModulesJob.swift │ │ ├── PrintSupportedFeaturesJob.swift │ │ ├── PrintTargetInfoJob.swift │ │ ├── ReplJob.swift │ │ ├── SwiftHelpIntroJob.swift │ │ ├── Toolchain+InterpreterSupport.swift │ │ ├── Toolchain+LinkerSupport.swift │ │ ├── VerifyDebugInfoJob.swift │ │ ├── VerifyModuleInterfaceJob.swift │ │ ├── WebAssemblyToolchain+LinkerSupport.swift │ │ └── WindowsToolchain+LinkerSupport.swift │ ├── SwiftDriver.docc │ │ ├── ExplicitModuleBuilds.md │ │ ├── IncrementalBuilds.md │ │ ├── Info.plist │ │ └── SwiftDriver.md │ ├── SwiftScan │ │ ├── DependencyGraphBuilder.swift │ │ ├── Loader.swift │ │ ├── SwiftScan.swift │ │ └── SwiftScanCAS.swift │ ├── Toolchains │ │ ├── DarwinToolchain.swift │ │ ├── GenericUnixToolchain.swift │ │ ├── Toolchain.swift │ │ ├── WebAssemblyToolchain.swift │ │ └── WindowsToolchain.swift │ ├── ToolingInterface │ │ ├── SimpleExecutor.swift │ │ └── ToolingUtil.swift │ └── Utilities │ │ ├── DOTJobGraphSerializer.swift │ │ ├── DOTModuleDependencyGraphSerializer.swift │ │ ├── DateAdditions.swift │ │ ├── Diagnostics.swift │ │ ├── FileList.swift │ │ ├── FileType.swift │ │ ├── PredictableRandomNumberGenerator.swift │ │ ├── RelativePathAdditions.swift │ │ ├── Sanitizer.swift │ │ ├── StringAdditions.swift │ │ ├── System.swift │ │ ├── Triple+Platforms.swift │ │ ├── Triple.swift │ │ ├── TypedVirtualPath.swift │ │ ├── Version.swift │ │ └── VirtualPath.swift ├── SwiftDriverExecution │ ├── CMakeLists.txt │ ├── MultiJobExecutor.swift │ ├── SwiftDriverExecutor.swift │ └── llbuild.swift ├── SwiftOptions │ ├── CMakeLists.txt │ ├── DriverKind.swift │ ├── Option.swift │ ├── OptionParsing.swift │ ├── OptionTable.swift │ ├── Options.swift │ ├── ParsedOptions.swift │ └── PrefixTrie.swift ├── makeOptions │ ├── CMakeLists.txt │ ├── main.cpp │ └── makeOptions.cpp ├── swift-build-sdk-interfaces │ ├── CMakeLists.txt │ └── main.swift ├── swift-driver │ ├── CMakeLists.txt │ └── main.swift └── swift-help │ ├── CMakeLists.txt │ └── main.swift ├── TestInputs ├── ABIBaselines │ └── A.swiftmodule │ │ ├── arm64-apple-macos.abi.json │ │ ├── arm64e-apple-macos.abi.json │ │ └── x86_64-apple-macos.abi.json ├── Dummy.xctoolchain │ └── usr │ │ └── local │ │ └── lib │ │ └── swift │ │ ├── blocklists │ │ ├── block-list1.yml │ │ ├── block-list2.yaml │ │ └── block-list3.txt │ │ └── compilerClientsConfig_version.txt ├── ExplicitModuleBuilds │ ├── CHeaders │ │ ├── A.h │ │ ├── B.h │ │ ├── Bridging.h │ │ ├── BridgingOther.h │ │ ├── C.h │ │ ├── D.h │ │ ├── F.h │ │ ├── G.h │ │ ├── X.h │ │ └── module.modulemap │ └── Swift │ │ ├── A.swiftinterface │ │ ├── E.swiftinterface │ │ ├── F.swiftinterface │ │ ├── G.swiftinterface │ │ ├── H.swiftinterface │ │ ├── I.swiftinterface │ │ ├── J.swiftinterface │ │ ├── O.swiftinterface │ │ ├── R.swiftinterface │ │ ├── S.swiftinterface │ │ ├── T.swiftinterface │ │ ├── W.swiftinterface │ │ └── Y.swiftinterface ├── Incremental │ ├── hello.swiftdeps │ ├── hello.swiftdeps.yaml │ ├── hello.swiftmodule │ ├── main.swiftdeps │ └── main.swiftdeps.yaml ├── Platform Checks │ ├── iPhoneOS.platform │ │ └── Developer │ │ │ └── SDKs │ │ │ └── iPhoneOS13.0.sdk │ │ │ └── SDKSettings.json │ └── iPhoneSimulator.platform │ │ └── Developer │ │ └── SDKs │ │ └── iPhoneSimulator15.0.sdk │ │ └── SDKSettings.json ├── PrebuiltModules-macOS10.15.xctoolchain │ └── usr │ │ └── lib │ │ └── swift │ │ └── macosx │ │ └── prebuilt-modules │ │ └── 10.15 │ │ └── .empty-file ├── PrebuiltModules-macOSUnversioned.xctoolchain │ └── usr │ │ └── lib │ │ └── swift │ │ └── macosx │ │ └── prebuilt-modules │ │ └── .empty-file ├── SDKChecks │ ├── MacOSX10.10.sdk │ │ └── SDKSettings.json │ ├── MacOSX10.11.sdk │ │ └── SDKSettings.json │ ├── MacOSX10.14.Internal.sdk │ │ └── SDKSettings.json │ ├── MacOSX10.15.4.sdk │ │ └── SDKSettings.json │ ├── MacOSX10.15.Internal.sdk │ │ └── SDKSettings.json │ ├── MacOSX10.15.sdk │ │ └── SDKSettings.json │ ├── MacOSX10.8.sdk │ │ └── SDKSettings.json │ ├── MacOSX10.9.sdk │ │ └── SDKSettings.json │ ├── MacOSX7.17.sdk │ │ └── SDKSettings.json │ ├── iPhoneOS.sdk │ │ └── SDKSettings.json │ ├── iPhoneOS12.99.sdk │ │ └── SDKSettings.json │ ├── iPhoneOS13.0.sdk │ │ └── SDKSettings.json │ ├── iPhoneOS7.sdk │ │ └── SDKSettings.json │ ├── iPhoneSimulator7.sdk │ │ └── SDKSettings.json │ ├── tvOS.sdk │ │ └── SDKSettings.json │ ├── tvOS13.0.sdk │ │ └── SDKSettings.json │ ├── tvOS8.0.sdk │ │ └── SDKSettings.json │ ├── watchOS.sdk │ │ └── SDKSettings.json │ ├── watchOS2.0.sdk │ │ └── SDKSettings.json │ ├── watchOS3.0.Internal.sdk │ │ └── SDKSettings.json │ ├── watchOS3.0.sdk │ │ └── SDKSettings.json │ ├── watchOS6.0.sdk │ │ └── SDKSettings.json │ └── watchSimulator6.0.sdk │ │ └── SDKSettings.json ├── SampleSwiftDeps │ ├── APIDigesterJobs.swiftdeps │ ├── AddOn.swiftdeps │ ├── Archiver.swiftdeps │ ├── ArgsResolver.swiftdeps │ ├── Argument.swiftdeps │ ├── ArgumentDecoder.swiftdeps │ ├── ArgumentDefinition.swiftdeps │ ├── ArgumentHelp.swiftdeps │ ├── ArgumentParser.swiftdeps │ ├── ArgumentParserShellCompletion.swiftdeps │ ├── ArgumentSet.swiftdeps │ ├── Array+Extensions.swiftdeps │ ├── AutolinkExtractJob.swiftdeps │ ├── Await.swiftdeps │ ├── BackendJob.swiftdeps │ ├── Base64URL.swiftdeps │ ├── BashCompletionsGenerator.swiftdeps │ ├── Bits.swiftdeps │ ├── Bitstream.swiftdeps │ ├── BitstreamReader.swiftdeps │ ├── BitstreamWriter.swiftdeps │ ├── BuildDBBindings.swiftdeps │ ├── BuildFlags.swiftdeps │ ├── BuildKey.swiftdeps │ ├── BuildRecord.swiftdeps │ ├── BuildRecordInfo.swiftdeps │ ├── BuildSystemBindings.swiftdeps │ ├── BuildValue.swiftdeps │ ├── ByteString.swiftdeps │ ├── CStringArray.swiftdeps │ ├── CacheableSequence.swiftdeps │ ├── ClangVersionedDependencyResolution.swiftdeps │ ├── Closable.swiftdeps │ ├── CodableResult.swiftdeps │ ├── CollectionAlgorithms.swiftdeps │ ├── CollectionExtensions.swiftdeps │ ├── CommandConfiguration.swiftdeps │ ├── CommandLineArguments.swiftdeps │ ├── CommandParser.swiftdeps │ ├── CommonDependencyOperations.swiftdeps │ ├── CompileJob.swiftdeps │ ├── CompiledSourceCollector.swiftdeps │ ├── CompilerMode.swiftdeps │ ├── CompletionKind.swiftdeps │ ├── CompletionsGenerator.swiftdeps │ ├── Condition.swiftdeps │ ├── Constructor.swiftdeps │ ├── Context.swiftdeps │ ├── CoreBindings.swiftdeps │ ├── DOTJobGraphSerializer.swiftdeps │ ├── DarwinToolchain+LinkerSupport.swiftdeps │ ├── DarwinToolchain.swiftdeps │ ├── DateAdditions.swiftdeps │ ├── DebugInfo.swiftdeps │ ├── Decoder.swiftdeps │ ├── DeltaAlgorithm.swiftdeps │ ├── DependencyGraphBuilder.swiftdeps │ ├── DependencyGraphDotFileWriter.swiftdeps │ ├── DependencyKey.swiftdeps │ ├── DependencySource.swiftdeps │ ├── Diagnostics.swiftdeps │ ├── DiagnosticsEngine.swiftdeps │ ├── DictionaryExtensions.swiftdeps │ ├── DictionaryLiteralExtensions.swiftdeps │ ├── DirectAndTransitiveCollections.swiftdeps │ ├── Downloader.swiftdeps │ ├── Driver.swiftdeps │ ├── DriverExecutor.swiftdeps │ ├── DriverExtensions.swiftdeps │ ├── DriverKind.swiftdeps │ ├── DriverVersion.swiftdeps │ ├── EditDistance.swiftdeps │ ├── EmitModuleJob.swiftdeps │ ├── EmitSupportedFeaturesJob.swiftdeps │ ├── Emitter.swiftdeps │ ├── Encoder.swiftdeps │ ├── EnumerableFlag.swiftdeps │ ├── Errors.swiftdeps │ ├── Expectation.swiftdeps │ ├── ExpectedCompilations.swiftdeps │ ├── ExpectedProcessResult.swiftdeps │ ├── ExplicitDependencyBuildPlanner.swiftdeps │ ├── ExpressibleByArgument.swiftdeps │ ├── ExternalDependencyAndFingerprintEnforcer.swiftdeps │ ├── ExtraOptions.swiftdeps │ ├── FSWatch.swiftdeps │ ├── FileInfo.swiftdeps │ ├── FileList.swiftdeps │ ├── FileSystem.swiftdeps │ ├── FileType.swiftdeps │ ├── FirstWaveComputer.swiftdeps │ ├── FishCompletionsGenerator.swiftdeps │ ├── Fixture.swiftdeps │ ├── Flag.swiftdeps │ ├── FloatingPointExtensions.swiftdeps │ ├── FrontendJobHelpers.swiftdeps │ ├── GenerateDSYMJob.swiftdeps │ ├── GeneratePCHJob.swiftdeps │ ├── GeneratePCMJob.swiftdeps │ ├── GenericUnixToolchain+LinkerSupport.swiftdeps │ ├── GenericUnixToolchain.swiftdeps │ ├── Git.swiftdeps │ ├── GraphAlgorithms.swiftdeps │ ├── HashAlgorithms.swiftdeps │ ├── HelpCommand.swiftdeps │ ├── HelpGenerator.swiftdeps │ ├── Hex.swiftdeps │ ├── IncrementalCompilationState.swiftdeps │ ├── IncrementalDependencyAndInputSetup.swiftdeps │ ├── IncrementalTest.swiftdeps │ ├── IndexStore.swiftdeps │ ├── InputInfo.swiftdeps │ ├── InputOrigin.swiftdeps │ ├── Integrator.swiftdeps │ ├── InterModuleDependencyGraph.swiftdeps │ ├── InterModuleDependencyOracle.swiftdeps │ ├── Internals.swiftdeps │ ├── InterpretJob.swiftdeps │ ├── InterruptHandler.swiftdeps │ ├── JSON.swiftdeps │ ├── JSONMapper.swiftdeps │ ├── JSONMessageStreamingParser.swiftdeps │ ├── Job.swiftdeps │ ├── KeyAndFingerprintHolder.swiftdeps │ ├── KeyedPair.swiftdeps │ ├── LazyCache.swiftdeps │ ├── LinkJob.swiftdeps │ ├── LinkKind.swiftdeps │ ├── Lock.swiftdeps │ ├── Mark.swiftdeps │ ├── MergeModuleJob.swiftdeps │ ├── MessageInfo.swiftdeps │ ├── Module.swiftdeps │ ├── ModuleDependencyGraph.swiftdeps │ ├── ModuleDependencyScanning.swiftdeps │ ├── ModuleOutputInfo.swiftdeps │ ├── ModuleWrapJob.swiftdeps │ ├── MultiJobExecutor.swiftdeps │ ├── Multidictionary.swiftdeps │ ├── Name.swiftdeps │ ├── NameSpecification.swiftdeps │ ├── Netrc.swiftdeps │ ├── Node.Mapping.swiftdeps │ ├── Node.Scalar.swiftdeps │ ├── Node.Sequence.swiftdeps │ ├── Node.swiftdeps │ ├── NodeFinder.swiftdeps │ ├── OSLog.swiftdeps │ ├── ObjectIdentifierProtocol.swiftdeps │ ├── Option.swiftdeps │ ├── OptionGroup.swiftdeps │ ├── OptionParsing.swiftdeps │ ├── OptionTable.swiftdeps │ ├── Options.swiftdeps │ ├── OrderedDictionary.swiftdeps │ ├── OrderedSet.swiftdeps │ ├── OrderedZip.swiftdeps │ ├── OutputFileMap.swiftdeps │ ├── OutputFileMapCreator.swiftdeps │ ├── ParsableArguments.swiftdeps │ ├── ParsableArgumentsValidation.swiftdeps │ ├── ParsableCommand.swiftdeps │ ├── ParsableOutput.swiftdeps │ ├── Parsed.swiftdeps │ ├── ParsedOptions.swiftdeps │ ├── ParsedValues.swiftdeps │ ├── Parser.swiftdeps │ ├── ParserError.swiftdeps │ ├── Path.swiftdeps │ ├── PathShims.swiftdeps │ ├── PersistenceCache.swiftdeps │ ├── PkgConfig.swiftdeps │ ├── Planning.swiftdeps │ ├── Platform.swiftdeps │ ├── PolymorphicCodable.swiftdeps │ ├── PrebuiltModulesJob.swiftdeps │ ├── PredictableRandomNumberGenerator.swiftdeps │ ├── PrefixTrie.swiftdeps │ ├── PrintTargetInfoJob.swiftdeps │ ├── Process.swiftdeps │ ├── ProcessEnv.swiftdeps │ ├── ProcessProtocol.swiftdeps │ ├── ProcessSet.swiftdeps │ ├── ProgressAnimation.swiftdeps │ ├── RegEx.swiftdeps │ ├── RelativePathAdditions.swiftdeps │ ├── ReplJob.swiftdeps │ ├── Representer.swiftdeps │ ├── Resolver.swiftdeps │ ├── Result.swiftdeps │ ├── SQLite.swiftdeps │ ├── Sanitizer.swiftdeps │ ├── SequenceExtensions.swiftdeps │ ├── SerializableModuleArtifacts.swiftdeps │ ├── SerializedDiagnostics.swiftdeps │ ├── SimplePersistence.swiftdeps │ ├── SortedArray.swiftdeps │ ├── Source.swiftdeps │ ├── SourceFileDependencyGraph.swiftdeps │ ├── SplitArguments.swiftdeps │ ├── Step.swiftdeps │ ├── String+Yams.swiftdeps │ ├── StringAdditions.swiftdeps │ ├── StringConversions.swiftdeps │ ├── StringExtensions.swiftdeps │ ├── StringMangling.swiftdeps │ ├── SwiftDriverExecutor.swiftdeps │ ├── SwiftScan.swiftdeps │ ├── SynchronizedQueue.swiftdeps │ ├── System.swiftdeps │ ├── Tag.swiftdeps │ ├── TemporaryFile.swiftdeps │ ├── TemporaryFileMatching.swiftdeps │ ├── TerminalController.swiftdeps │ ├── Thread.swiftdeps │ ├── ToolExecutionDelegate.swiftdeps │ ├── Toolchain+InterpreterSupport.swiftdeps │ ├── Toolchain+LinkerSupport.swiftdeps │ ├── Toolchain.swiftdeps │ ├── Tracer.swiftdeps │ ├── Tracing.swiftdeps │ ├── Tree.swiftdeps │ ├── Triple+Platforms.swiftdeps │ ├── Triple.swiftdeps │ ├── Tuple.swiftdeps │ ├── TwoDMap.swiftdeps │ ├── TwoLevelMap.swiftdeps │ ├── TypedVirtualPath.swiftdeps │ ├── URL.swiftdeps │ ├── UsageGenerator.swiftdeps │ ├── Verbosity.swiftdeps │ ├── VerifyDebugInfoJob.swiftdeps │ ├── VerifyModuleInterfaceJob.swiftdeps │ ├── Version.swiftdeps │ ├── VersionExtensions.swiftdeps │ ├── Versioning.swiftdeps │ ├── VirtualPath.swiftdeps │ ├── WebAssemblyToolchain+LinkerSupport.swiftdeps │ ├── WebAssemblyToolchain.swiftdeps │ ├── WritableByteStream.swiftdeps │ ├── YamlError.swiftdeps │ ├── ZshCompletionsGenerator.swiftdeps │ ├── dlopen.swiftdeps │ ├── libc.swiftdeps │ ├── llbuild.swiftdeps │ ├── main.swiftdeps │ ├── master.swiftdeps │ └── misc.swiftdeps ├── mock-sdk.Internal.sdk │ ├── SDKSettings.json │ ├── System │ │ └── Library │ │ │ └── Frameworks │ │ │ ├── B.framework │ │ │ ├── Modules │ │ │ │ ├── B.swiftmodule │ │ │ │ │ ├── arm64-apple-macos.private.swiftinterface │ │ │ │ │ ├── arm64-apple-macos.swiftinterface │ │ │ │ │ ├── arm64e-apple-macos.swiftinterface │ │ │ │ │ └── x86_64-apple-macos.swiftinterface │ │ │ │ └── module.modulemap │ │ │ └── PrivateHeaders │ │ │ │ └── B-Swift.h │ │ │ └── C.framework │ │ │ ├── Headers │ │ │ └── C-API.h │ │ │ └── Modules │ │ │ ├── C.swiftmodule │ │ │ ├── arm64-apple-macos.private.swiftinterface │ │ │ ├── arm64-apple-macos.swiftinterface │ │ │ ├── arm64e-apple-macos.swiftinterface │ │ │ └── x86_64-apple-macos.swiftinterface │ │ │ └── module.modulemap │ └── usr │ │ └── lib │ │ └── swift │ │ └── A.swiftmodule │ │ ├── arm64-apple-macos.swiftinterface │ │ ├── arm64e-apple-macos.swiftinterface │ │ └── x86_64-apple-macos.swiftinterface └── mock-sdk.sdk │ ├── SDKSettings.json │ ├── System │ └── iOSSupport │ │ └── usr │ │ └── lib │ │ └── swift │ │ └── MissingKit.swiftmodule │ │ ├── arm64e.swiftinterface │ │ └── x86_64.swiftinterface │ └── usr │ └── lib │ └── swift │ ├── A.swiftmodule │ ├── arm64-apple-macos.swiftinterface │ ├── arm64e-apple-macos.swiftinterface │ └── x86_64-apple-macos.swiftinterface │ ├── E.swiftmodule │ ├── arm64-apple-macos.swiftinterface │ ├── arm64e-apple-macos.swiftinterface │ └── x86_64-apple-macos.swiftinterface │ ├── F.swiftmodule │ ├── arm64-apple-macos.swiftinterface │ ├── arm64e-apple-macos.swiftinterface │ └── x86_64-apple-macos.swiftinterface │ ├── G.swiftmodule │ ├── arm64-apple-macos.swiftinterface │ ├── arm64e-apple-macos.swiftinterface │ └── x86_64-apple-macos.swiftinterface │ ├── H.swiftmodule │ ├── arm64-apple-macos.swiftinterface │ ├── arm64e-apple-macos.swiftinterface │ └── x86_64-apple-macos.swiftinterface │ └── Swift.swiftmodule │ ├── arm64-apple-macos.swiftinterface │ ├── arm64e-apple-macos.swiftinterface │ └── x86_64-apple-macos.swiftinterface ├── Tests ├── IncrementalImportTests │ ├── AddFuncInImportedExtensionTest.swift │ ├── Antisymmetry.swift │ ├── HideAndShowFuncInStructAndExtensionTest.swift │ ├── RenameMemberOfImportedStructTest.swift │ ├── SpecificFuncAdditionInExtensionWithinModuleTest.swift │ └── Transitivity.swift ├── IncrementalTestFramework │ ├── AddOn.swift │ ├── CompiledSourceCollector.swift │ ├── Context.swift │ ├── Expectation.swift │ ├── ExpectedCompilations.swift │ ├── ExpectedProcessResult.swift │ ├── IncrementalTest.swift │ ├── Module.swift │ ├── Source.swift │ └── Step.swift ├── SwiftDriverTests │ ├── APIDigesterTests.swift │ ├── AssertDiagnosticsTests.swift │ ├── CachingBuildTests.swift │ ├── CrossModuleIncrementalBuildTests.swift │ ├── DependencyGraphSerializationTests.swift │ ├── ExplicitModuleBuildTests.swift │ ├── Helpers │ │ ├── AssertDiagnostics.swift │ │ ├── MockingIncrementalCompilation.swift │ │ ├── Permutations.swift │ │ └── XCTestExtensions.swift │ ├── IncrementalBuildPerformanceTests.swift │ ├── IncrementalCompilationTests.swift │ ├── Inputs │ │ ├── ExplicitModuleDependencyBuildInputs.swift │ │ └── IncrementalCompilationInputs.swift │ ├── IntegrationTests.swift │ ├── JobExecutorTests.swift │ ├── ModuleDependencyGraphTests.swift │ ├── MultidictionaryTests.swift │ ├── NonincrementalCompilationTests.swift │ ├── ParsableMessageTests.swift │ ├── PredictableRandomNumberGeneratorTests.swift │ ├── StringAdditionsTests.swift │ ├── SwiftDriverTests.swift │ ├── SwiftDriverToolingInterfaceTests.swift │ ├── TripleTests.swift │ └── TwoDMapTests.swift ├── SwiftOptionsTests │ ├── OptionParsingTests.swift │ └── PrefixTrieTests.swift ├── TestUtilities │ ├── DriverExtensions.swift │ ├── Fixture.swift │ ├── OutputFileMapCreator.swift │ ├── PathExtensions.swift │ └── TemporaryFileMatching.swift └── ToolingTestShim │ ├── CMakeLists.txt │ ├── CToolingTestShimImpl.c │ └── include │ ├── module.modulemap │ └── tooling_shim.h ├── Utilities └── build-script-helper.py └── cmake └── modules ├── CMakeLists.txt ├── FindLLBuild.cmake └── SwiftDriverConfig.cmake.in /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | indent_style = space 7 | indent_size = 2 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | xcode_trim_whitespace_on_empty_lines = true 11 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.swiftinterface text eol=lf 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | xcuserdata/ 6 | .swiftpm 7 | .*.sw? 8 | .vscode/launch.json 9 | -------------------------------------------------------------------------------- /Package.resolved: -------------------------------------------------------------------------------- 1 | { 2 | "pins" : [ 3 | { 4 | "identity" : "swift-argument-parser", 5 | "kind" : "remoteSourceControl", 6 | "location" : "https://github.com/apple/swift-argument-parser.git", 7 | "state" : { 8 | "revision" : "41982a3656a71c768319979febd796c6fd111d5c", 9 | "version" : "1.5.0" 10 | } 11 | }, 12 | { 13 | "identity" : "swift-llbuild", 14 | "kind" : "remoteSourceControl", 15 | "location" : "https://github.com/swiftlang/swift-llbuild.git", 16 | "state" : { 17 | "branch" : "main", 18 | "revision" : "02db743e7fd4ba241b78207309ddb3c9c2ec5f3f" 19 | } 20 | }, 21 | { 22 | "identity" : "swift-toolchain-sqlite", 23 | "kind" : "remoteSourceControl", 24 | "location" : "https://github.com/swiftlang/swift-toolchain-sqlite", 25 | "state" : { 26 | "revision" : "bb8321a7eea3830af401a1501c7c8cc27ded6793", 27 | "version" : "1.0.2" 28 | } 29 | }, 30 | { 31 | "identity" : "swift-tools-support-core", 32 | "kind" : "remoteSourceControl", 33 | "location" : "https://github.com/swiftlang/swift-tools-support-core.git", 34 | "state" : { 35 | "branch" : "main", 36 | "revision" : "4074f4db0971328c441fc1621c673937b9ca3b08" 37 | } 38 | } 39 | ], 40 | "version" : 2 41 | } 42 | -------------------------------------------------------------------------------- /Sources/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # This source file is part of the Swift.org open source project 2 | # 3 | # Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 4 | # Licensed under Apache License v2.0 with Runtime Library Exception 5 | # 6 | # See http://swift.org/LICENSE.txt for license information 7 | # See http://swift.org/CONTRIBUTORS.txt for Swift project authors 8 | 9 | add_subdirectory(CSwiftScan) 10 | add_subdirectory(SwiftOptions) 11 | add_subdirectory(SwiftDriver) 12 | add_subdirectory(SwiftDriverExecution) 13 | add_subdirectory(swift-build-sdk-interfaces) 14 | add_subdirectory(swift-driver) 15 | add_subdirectory(swift-help) 16 | 17 | if(SWIFT_DRIVER_BUILD_TOOLS) 18 | add_subdirectory(makeOptions) 19 | endif() 20 | -------------------------------------------------------------------------------- /Sources/CSwiftScan/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # This source file is part of the Swift.org open source project 2 | # 3 | # Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors 4 | # Licensed under Apache License v2.0 with Runtime Library Exception 5 | # 6 | # See http://swift.org/LICENSE.txt for license information 7 | # See http://swift.org/CONTRIBUTORS.txt for Swift project authors 8 | 9 | add_library(CSwiftScan STATIC 10 | CSwiftScanImpl.c) 11 | set_property(GLOBAL APPEND PROPERTY SWIFTDRIVER_EXPORTS CSwiftScan) 12 | -------------------------------------------------------------------------------- /Sources/CSwiftScan/CSwiftScanImpl.c: -------------------------------------------------------------------------------- 1 | // This file is here to prevent the package manager from warning about a 2 | // target with no sources. 3 | #include "include/swiftscan_header.h" 4 | -------------------------------------------------------------------------------- /Sources/CSwiftScan/include/module.modulemap: -------------------------------------------------------------------------------- 1 | module CSwiftScan { 2 | header "swiftscan_header.h" 3 | export * 4 | } 5 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/Driver/DebugInfo.swift: -------------------------------------------------------------------------------- 1 | //===--------------- DebugInfo.swift - Swift Debug Information ------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | /// The debug information produced by the driver. 14 | @_spi(Testing) public struct DebugInfo { 15 | 16 | /// Describes the format used for debug information. 17 | public enum Format: String { 18 | case dwarf 19 | case codeView = "codeview" 20 | } 21 | 22 | /// Describes the level of debug information. 23 | public enum Level { 24 | /// Line tables only (no type information). 25 | case lineTables 26 | 27 | /// Line tables with AST type references 28 | case astTypes 29 | 30 | /// Line tables with AST type references and DWARF types 31 | case dwarfTypes 32 | 33 | public var requiresModule: Bool { 34 | switch self { 35 | case .lineTables: 36 | return false 37 | 38 | case .astTypes, .dwarfTypes: 39 | return true 40 | } 41 | } 42 | } 43 | 44 | /// The format of debug information. 45 | public let format: Format 46 | 47 | /// The DWARF standard version to be produced. 48 | public let dwarfVersion: UInt8 49 | 50 | /// The level of debug information. 51 | public let level: Level? 52 | 53 | /// Whether 'dwarfdump' should be used to verify debug info. 54 | public let shouldVerify: Bool 55 | } 56 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/Driver/DriverVersion.swift: -------------------------------------------------------------------------------- 1 | //===------ DriverVersion.swift - Swift Driver Source Version--------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | extension Driver { 13 | #if SWIFT_DRIVER_VERSION_DEFINED 14 | static let driverSourceVersion: String = SWIFT_DRIVER_VERSION 15 | #else 16 | static let driverSourceVersion: String = "" 17 | #endif 18 | } 19 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/Driver/LinkKind.swift: -------------------------------------------------------------------------------- 1 | //===--------------- LinkKind.swift - Swift Linking Kind ------------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | /// Describes the kind of linker output we expect to produce. 14 | public enum LinkOutputType { 15 | /// An executable file. 16 | case executable 17 | 18 | /// A shared library (e.g., .dylib or .so) 19 | case dynamicLibrary 20 | 21 | /// A static library (e.g., .a or .lib) 22 | case staticLibrary 23 | } 24 | 25 | /// Describes the kind of link-time-optimization we expect to perform. 26 | public enum LTOKind: String, Hashable, CaseIterable { 27 | /// Perform LLVM ThinLTO. 28 | case llvmThin = "llvm-thin" 29 | /// Perform LLVM full LTO. 30 | case llvmFull = "llvm-full" 31 | } 32 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/Driver/ModuleOutputInfo.swift: -------------------------------------------------------------------------------- 1 | //===--------------- ModuleOutputInfo.swift - Module output information ---===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | /// The information about module output produced by the driver. 14 | @_spi(Testing) public struct ModuleOutputInfo { 15 | 16 | /// How should the Swift module output be handled? 17 | public enum ModuleOutput: Equatable { 18 | /// The Swift module is a top-level output. 19 | case topLevel(VirtualPath.Handle) 20 | 21 | /// The Swift module is an auxiliary output. 22 | case auxiliary(VirtualPath.Handle) 23 | 24 | public var outputPath: VirtualPath.Handle { 25 | switch self { 26 | case .topLevel(let path): 27 | return path 28 | 29 | case .auxiliary(let path): 30 | return path 31 | } 32 | } 33 | 34 | public var isTopLevel: Bool { 35 | switch self { 36 | case .topLevel: return true 37 | default: return false 38 | } 39 | } 40 | } 41 | 42 | /// The form that the module output will take, e.g., top-level vs. auxiliary, 43 | /// and the path at which the module should be emitted. `nil` if no module should be emitted. 44 | public let output: ModuleOutput? 45 | 46 | /// The name of the Swift module being built. 47 | public let name: String 48 | 49 | /// Whether `name` was picked by the driver instead of the user. 50 | public let nameIsFallback: Bool 51 | 52 | /// Map of aliases and real names of modules referenced by source files in the current module 53 | public let aliases: [String: String]? 54 | } 55 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/Driver/WindowsExtensions.swift: -------------------------------------------------------------------------------- 1 | //===------------- WindowsExtensions.swift - Windows Extensions -----------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | internal func executableName(_ name: String) -> String { 14 | #if os(Windows) 15 | if name.count > 4, name.suffix(from: name.index(name.endIndex, offsetBy: -4)) == ".exe" { 16 | return name 17 | } 18 | return "\(name).exe" 19 | #else 20 | return name 21 | #endif 22 | } 23 | 24 | @_spi(Testing) public func sharedLibraryName(_ name: String) -> String { 25 | #if canImport(Darwin) 26 | let ext = ".dylib" 27 | #elseif os(Windows) 28 | let ext = ".dll" 29 | #else 30 | let ext = ".so" 31 | #endif 32 | return name + ext 33 | } 34 | 35 | // FIXME: This can be subtly wrong, we should rather 36 | // try to get the client to provide this info or move to a better 37 | // path convention for where we keep compiler support libraries 38 | internal var compilerHostSupportLibraryOSComponent : String { 39 | #if canImport(Darwin) 40 | return "macosx" 41 | #elseif os(Windows) 42 | return "windows" 43 | #else 44 | return "linux" 45 | #endif 46 | } 47 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/Execution/ProcessProtocol.swift: -------------------------------------------------------------------------------- 1 | //===--------------- ProessProtocol.swift - Swift Subprocesses ------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | import class TSCBasic.Process 14 | import struct TSCBasic.ProcessResult 15 | 16 | import class Foundation.FileHandle 17 | import struct Foundation.Data 18 | 19 | /// Abstraction for functionality that allows working with subprocesses. 20 | public protocol ProcessProtocol { 21 | /// The PID of the process. 22 | /// 23 | /// Clients that don't really launch a process can return 24 | /// a negative number to represent a "quasi-pid". 25 | /// 26 | /// - SeeAlso: https://github.com/apple/swift/blob/main/docs/DriverParseableOutput.rst#quasi-pids 27 | var processID: TSCBasic.Process.ProcessID { get } 28 | 29 | /// Wait for the process to finish execution. 30 | @discardableResult 31 | func waitUntilExit() throws -> ProcessResult 32 | 33 | static func launchProcess( 34 | arguments: [String], 35 | env: [String: String] 36 | ) throws -> Self 37 | 38 | static func launchProcessAndWriteInput( 39 | arguments: [String], 40 | env: [String: String], 41 | inputFileHandle: FileHandle 42 | ) throws -> Self 43 | } 44 | 45 | extension TSCBasic.Process: ProcessProtocol { 46 | public static func launchProcess( 47 | arguments: [String], 48 | env: [String: String] 49 | ) throws -> TSCBasic.Process { 50 | let process = Process(arguments: arguments, environment: env) 51 | try process.launch() 52 | return process 53 | } 54 | 55 | public static func launchProcessAndWriteInput( 56 | arguments: [String], 57 | env: [String: String], 58 | inputFileHandle: FileHandle 59 | ) throws -> TSCBasic.Process { 60 | let process = Process(arguments: arguments, environment: env) 61 | let processInputStream = try process.launch() 62 | var input: Data 63 | // Write out the contents of the input handle and close the input stream 64 | repeat { 65 | input = inputFileHandle.availableData 66 | processInputStream.write(input) 67 | } while (input.count > 0) 68 | processInputStream.flush() 69 | try processInputStream.close() 70 | return process 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/IncrementalCompilation/Bitcode/Bitcode.swift: -------------------------------------------------------------------------------- 1 | //===--------------- BitCode.swift - LLVM BitCode Helpers ----------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | import struct TSCBasic.ByteString 14 | 15 | internal struct Bitcode { 16 | public let signature: Bitcode.Signature 17 | public let elements: [BitcodeElement] 18 | public let blockInfo: [UInt64:BlockInfo] 19 | } 20 | 21 | extension Bitcode { 22 | internal struct Signature: Equatable { 23 | private var value: UInt32 24 | 25 | public init(value: UInt32) { 26 | self.value = value 27 | } 28 | 29 | public init(string: String) { 30 | precondition(string.utf8.count == 4) 31 | var result: UInt32 = 0 32 | for byte in string.utf8.reversed() { 33 | result <<= 8 34 | result |= UInt32(byte) 35 | } 36 | self.value = result 37 | } 38 | } 39 | } 40 | 41 | extension Bitcode { 42 | /// Traverse a bitstream using the specified `visitor`, which will receive 43 | /// callbacks when blocks and records are encountered. 44 | internal static func read(bytes: ByteString, using visitor: inout Visitor) throws { 45 | precondition(bytes.count > 4) 46 | var reader = BitstreamReader(buffer: bytes) 47 | try visitor.validate(signature: reader.readSignature()) 48 | try reader.readBlock(id: BitstreamReader.fakeTopLevelBlockID, 49 | abbrevWidth: 2, 50 | abbrevInfo: [], 51 | visitor: &visitor) 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/IncrementalCompilation/Bitcode/BitcodeElement.swift: -------------------------------------------------------------------------------- 1 | //===--------------- BitcodeElement.swift - LLVM Bitcode Elements --------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | internal enum BitcodeElement { 14 | internal struct Block { 15 | public var id: UInt64 16 | public var elements: [BitcodeElement] 17 | } 18 | 19 | /// A record element. 20 | /// 21 | /// - Warning: A `Record` element's fields and payload only live as long as 22 | /// the `visit` function that provides them is called. To persist 23 | /// a record, always make a copy of it. 24 | internal struct Record { 25 | internal enum Payload { 26 | case none 27 | case array([UInt64]) 28 | case char6String(String) 29 | case blob(ArraySlice) 30 | } 31 | 32 | public var id: UInt64 33 | public var fields: UnsafeBufferPointer 34 | public var payload: Payload 35 | } 36 | 37 | case block(Block) 38 | case record(Record) 39 | } 40 | 41 | extension BitcodeElement.Record.Payload: CustomStringConvertible { 42 | internal var description: String { 43 | switch self { 44 | case .none: 45 | return "none" 46 | case .array(let vals): 47 | return "array(\(vals))" 48 | case .char6String(let s): 49 | return "char6String(\(s))" 50 | case .blob(let s): 51 | return "blob(\(s.count) bytes)" 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/IncrementalCompilation/Bitcode/BitstreamVisitor.swift: -------------------------------------------------------------------------------- 1 | //===----------- BitstreamVisitor.swift - LLVM Bitstream Visitor ----------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | internal protocol BitstreamVisitor { 14 | /// Customization point to validate a bitstream's signature or "magic number". 15 | func validate(signature: Bitcode.Signature) throws 16 | /// Called when a new block is encountered. Return `true` to enter the block 17 | /// and read its contents, or `false` to skip it. 18 | mutating func shouldEnterBlock(id: UInt64) throws -> Bool 19 | /// Called when a block is exited. 20 | mutating func didExitBlock() throws 21 | /// Called whenever a record is encountered. 22 | mutating func visit(record: BitcodeElement.Record) throws 23 | } 24 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/IncrementalCompilation/Bitcode/BlockInfo.swift: -------------------------------------------------------------------------------- 1 | //===----------- BlockInfo.swift - LLVM Bitstream Block Info --------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | internal struct BlockInfo { 14 | public var name: String = "" 15 | public var recordNames: [UInt64:String] = [:] 16 | } 17 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/IncrementalCompilation/ExternalDependencyAndFingerprintEnforcer.swift: -------------------------------------------------------------------------------- 1 | //===------- FingerprintedExternalHolder.swift ----------------------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2020 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | /// Central place to check an invariant: If an externalDependency has a fingerprint, it should point 14 | /// to a swiftmodule file that contains dependency information. 15 | 16 | protocol ExternalDependencyAndFingerprintEnforcer { 17 | var externalDependencyToCheck: ExternalDependency? {get} 18 | var fingerprint: InternedString? {get} 19 | } 20 | extension ExternalDependencyAndFingerprintEnforcer { 21 | func verifyExternalDependencyAndFingerprint() -> Bool { 22 | if let _ = self.fingerprint, 23 | let externalDependency = externalDependencyToCheck, 24 | !externalDependency.isSwiftModule { 25 | fatalError("An external dependency with a fingerprint must point to a swiftmodule file: \(externalDependency)") 26 | } 27 | return true 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/IncrementalCompilation/KeyAndFingerprintHolder.swift: -------------------------------------------------------------------------------- 1 | //===--------- KeyAndFingerprintHolder.swift ------------------------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2021 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | 14 | 15 | /// Encapsulates the invariant required for anything with a DependencyKey and an fingerprint 16 | public struct KeyAndFingerprintHolder: 17 | ExternalDependencyAndFingerprintEnforcer, Equatable, Hashable 18 | { 19 | /// Def->use arcs go by DependencyKey. There may be >1 node for a given key. 20 | let key: DependencyKey 21 | 22 | /// The frontend records in the fingerprint, all of the information about an 23 | /// entity, such that any uses need be rebuilt only if the fingerprint 24 | /// changes. 25 | /// When the driver reloads a dependency graph (after a frontend job has run), 26 | /// it can use the fingerprint to determine if the entity has changed and thus 27 | /// if uses need to be recompiled. 28 | /// 29 | /// However, at present, the frontend does not record this information for 30 | /// every Decl; it only records it for the source-file-as-a-whole in the 31 | /// interface hash. The interface hash is a product of all the tokens that are 32 | /// not inside of function bodies. Thus, if there is no fingerprint, when the 33 | /// frontend creates an interface node, 34 | /// it adds a dependency to it from the implementation source file node (which 35 | /// has the interfaceHash as its fingerprint). 36 | let fingerprint: InternedString? 37 | 38 | init(_ key: DependencyKey, _ fingerprint: InternedString?) throws { 39 | self.key = key 40 | self.fingerprint = fingerprint 41 | assert(verifyKeyAndFingerprint()) 42 | } 43 | var externalDependencyToCheck: ExternalDependency? { 44 | key.designator.externalDependency 45 | } 46 | private func verifyKeyAndFingerprint() -> Bool { 47 | assert(verifyExternalDependencyAndFingerprint()) 48 | 49 | if let externalDependency = externalDependencyToCheck, key.aspect != .interface { 50 | fatalError("Aspect of external dependency must be interface: \(externalDependency)") 51 | } 52 | return true 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/IncrementalCompilation/SwiftSourceFile.swift: -------------------------------------------------------------------------------- 1 | //===-------------------- SwiftSourceFile.swift - Incremental -------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | /// Because the incremental compilation system treats files containing Swift source code specially, 14 | /// it is helpful to statically distinguish them wherever an input must be swift source code. 15 | public struct SwiftSourceFile: Hashable { 16 | // must be .swift 17 | public let fileHandle: VirtualPath.Handle 18 | 19 | public init(_ fileHandle: VirtualPath.Handle) { 20 | self.fileHandle = fileHandle 21 | } 22 | public init(_ path: TypedVirtualPath) { 23 | assert(path.type == .swift) 24 | self.init(path.fileHandle) 25 | } 26 | public init?(ifSource path: TypedVirtualPath) { 27 | guard path.type == .swift else { return nil } 28 | self.init(path) 29 | } 30 | 31 | public init(_ path: VirtualPath) { 32 | assert(path.name.hasSuffix(".\(FileType.swift.rawValue)")) 33 | self.init(path.intern()) 34 | } 35 | 36 | public var typedFile: TypedVirtualPath { 37 | TypedVirtualPath(file: fileHandle, type: .swift) 38 | } 39 | } 40 | 41 | public extension Sequence where Element == TypedVirtualPath { 42 | var swiftSourceFiles: [SwiftSourceFile] { 43 | compactMap(SwiftSourceFile.init(ifSource:)) 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/Jobs/AutolinkExtractJob.swift: -------------------------------------------------------------------------------- 1 | //===--------------- AutolinkExtractJob.swift - Swift Autolink Extract ----===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | import struct TSCBasic.RelativePath 14 | 15 | // On ELF/Wasm platforms there's no built in autolinking mechanism, so we 16 | // pull the info we need from the .o files directly and pass them as an 17 | // argument input file to the linker. 18 | // FIXME: Also handle Cygwin and MinGW 19 | extension Driver { 20 | /*@_spi(Testing)*/ public var isAutolinkExtractJobNeeded: Bool { 21 | mutating get { 22 | switch targetTriple.objectFormat { 23 | case .wasm where !parsedOptions.isEmbeddedEnabled: 24 | fallthrough 25 | 26 | case .elf: 27 | return lto == nil && linkerOutputType != nil 28 | 29 | default: 30 | return false 31 | } 32 | } 33 | } 34 | 35 | mutating func autolinkExtractJob(inputs: [TypedVirtualPath]) throws -> Job? { 36 | guard let firstInput = inputs.first, isAutolinkExtractJobNeeded else { 37 | return nil 38 | } 39 | 40 | var commandLine = [Job.ArgTemplate]() 41 | // Put output in same place as first .o, following legacy driver. 42 | // (See `constructInvocation(const AutolinkExtractJobAction` in `UnixToolChains.cpp`.) 43 | let outputBasename = "\(moduleOutputInfo.name).autolink" 44 | let dir = firstInput.file.parentDirectory 45 | // Go through a bit of extra rigmarole to keep the "./" out of the name for 46 | // the sake of the tests. 47 | let output: VirtualPath = dir == .temporary(try RelativePath(validating: ".")) 48 | ? try VirtualPath.createUniqueTemporaryFile(RelativePath(validating: outputBasename)) 49 | : dir.appending(component: outputBasename) 50 | 51 | commandLine.append(contentsOf: inputs.map { .path($0.file) }) 52 | commandLine.appendFlag(.o) 53 | commandLine.appendPath(output) 54 | 55 | return Job( 56 | moduleName: moduleOutputInfo.name, 57 | kind: .autolinkExtract, 58 | tool: try toolchain.resolvedTool(.swiftAutolinkExtract), 59 | commandLine: commandLine, 60 | inputs: inputs, 61 | primaryInputs: [], 62 | outputs: [.init(file: output.intern(), type: .autolink)] 63 | ) 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/Jobs/GenerateDSYMJob.swift: -------------------------------------------------------------------------------- 1 | //===--------------- GenerateDSYMJob.swift - Swift dSYM Generation --------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | extension Driver { 14 | mutating func generateDSYMJob(inputs: [TypedVirtualPath]) throws -> Job { 15 | assert(inputs.count == 1) 16 | let input = inputs[0] 17 | 18 | // Output is final output file + `.dSYM` 19 | let outputFile: VirtualPath 20 | if let output = parsedOptions.getLastArgument(.o) { 21 | outputFile = try VirtualPath(path: output.asSingle) 22 | } else { 23 | outputFile = try outputFileForImage 24 | } 25 | let outputPath = try VirtualPath(path: outputFile.description.appendingFileTypeExtension(.dSYM)) 26 | 27 | var commandLine = [Job.ArgTemplate]() 28 | commandLine.appendPath(input.file) 29 | 30 | commandLine.appendFlag(.o) 31 | commandLine.appendPath(outputPath) 32 | 33 | return Job( 34 | moduleName: moduleOutputInfo.name, 35 | kind: .generateDSYM, 36 | tool: try toolchain.resolvedTool(.dsymutil), 37 | commandLine: commandLine, 38 | displayInputs: [], 39 | inputs: inputs, 40 | primaryInputs: [], 41 | outputs: [.init(file: outputPath.intern(), type: .dSYM)] 42 | ) 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/Jobs/InterpretJob.swift: -------------------------------------------------------------------------------- 1 | //===--------------- InterpretJob.swift - Swift Immediate Mode ------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | extension Driver { 14 | mutating func interpretJob(inputs allInputs: [TypedVirtualPath]) throws -> Job { 15 | var commandLine: [Job.ArgTemplate] = swiftCompilerPrefixArgs.map { Job.ArgTemplate.flag($0) } 16 | var inputs: [TypedVirtualPath] = [] 17 | 18 | commandLine.appendFlags("-frontend", "-interpret") 19 | 20 | // Add the inputs. 21 | for input in allInputs { 22 | commandLine.append(.path(input.file)) 23 | inputs.append(input) 24 | } 25 | 26 | if parsedOptions.hasArgument(.parseStdlib) { 27 | commandLine.appendFlag(.disableObjcAttrRequiresFoundationModule) 28 | } 29 | 30 | try addCommonFrontendOptions(commandLine: &commandLine, inputs: &inputs, kind: .interpret) 31 | try addRuntimeLibraryFlags(commandLine: &commandLine) 32 | 33 | try commandLine.appendLast(.parseSil, from: &parsedOptions) 34 | toolchain.addLinkedLibArgs(to: &commandLine, parsedOptions: &parsedOptions) 35 | try commandLine.appendAll(.framework, from: &parsedOptions) 36 | 37 | // The immediate arguments must be last. 38 | try commandLine.appendLast(.DASHDASH, from: &parsedOptions) 39 | 40 | let extraEnvironment = try toolchain.platformSpecificInterpreterEnvironmentVariables( 41 | env: self.env, parsedOptions: &parsedOptions, 42 | sdkPath: frontendTargetInfo.sdkPath?.path, targetInfo: self.frontendTargetInfo) 43 | 44 | return Job( 45 | moduleName: moduleOutputInfo.name, 46 | kind: .interpret, 47 | tool: try toolchain.resolvedTool(.swiftCompiler), 48 | commandLine: commandLine, 49 | inputs: inputs, 50 | primaryInputs: [], 51 | outputs: [], 52 | extraEnvironment: extraEnvironment, 53 | requiresInPlaceExecution: true 54 | ) 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/Jobs/ModuleWrapJob.swift: -------------------------------------------------------------------------------- 1 | //===--------------- ModuleWrapJob.swift - Swift Module Wrapping ----------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2020 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | extension Driver { 14 | mutating func moduleWrapJob(moduleInput: TypedVirtualPath) throws -> Job { 15 | var commandLine: [Job.ArgTemplate] = swiftCompilerPrefixArgs.map { Job.ArgTemplate.flag($0) } 16 | 17 | commandLine.appendFlags("-modulewrap") 18 | 19 | // Add the input. 20 | commandLine.append(.path(moduleInput.file)) 21 | 22 | commandLine.appendFlags("-target", targetTriple.triple) 23 | 24 | let outputPath = try moduleInput.file.replacingExtension(with: .object) 25 | commandLine.appendFlag("-o") 26 | commandLine.appendPath(outputPath) 27 | 28 | return Job( 29 | moduleName: moduleOutputInfo.name, 30 | kind: .moduleWrap, 31 | tool: try toolchain.resolvedTool(.swiftCompiler), 32 | commandLine: commandLine, 33 | inputs: [moduleInput], 34 | primaryInputs: [], 35 | outputs: [.init(file: outputPath.intern(), type: .object)] 36 | ) 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/Jobs/PrintSupportedFeaturesJob.swift: -------------------------------------------------------------------------------- 1 | //===------- PrintSupportedFeaturesJob.swift - Swift Target Info Job ------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2025 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | extension Toolchain { 14 | @_spi(Testing) public func printSupportedFeaturesJob( 15 | requiresInPlaceExecution: Bool = false, 16 | swiftCompilerPrefixArgs: [String] 17 | ) throws -> Job { 18 | var commandLine: [Job.ArgTemplate] = swiftCompilerPrefixArgs.map { Job.ArgTemplate.flag($0) } 19 | commandLine.append(contentsOf: [ 20 | .flag("-frontend"), 21 | .flag("-print-supported-features"), 22 | ]) 23 | 24 | return Job( 25 | moduleName: "", 26 | kind: .printSupportedFeatures, 27 | tool: try resolvedTool(.swiftCompiler), 28 | commandLine: commandLine, 29 | displayInputs: [], 30 | inputs: [], 31 | primaryInputs: [], 32 | outputs: [.init(file: .standardOutput, type: .jsonSupportedFeatures)], 33 | requiresInPlaceExecution: requiresInPlaceExecution 34 | ) 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/Jobs/ReplJob.swift: -------------------------------------------------------------------------------- 1 | //===--------------- ReplJob.swift - Swift REPL ---------------------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | extension Driver { 14 | mutating func replJob() throws -> Job { 15 | var commandLine: [Job.ArgTemplate] = swiftCompilerPrefixArgs.map { Job.ArgTemplate.flag($0) } 16 | var inputs: [TypedVirtualPath] = [] 17 | 18 | try addCommonFrontendOptions(commandLine: &commandLine, inputs: &inputs, kind: .repl) 19 | try addRuntimeLibraryFlags(commandLine: &commandLine) 20 | 21 | try commandLine.appendLast(.importObjcHeader, from: &parsedOptions) 22 | toolchain.addLinkedLibArgs( 23 | to: &commandLine, 24 | parsedOptions: &parsedOptions 25 | ) 26 | try commandLine.appendAll(.framework, .L, from: &parsedOptions) 27 | 28 | // Squash important frontend options into a single argument for LLDB. 29 | let lldbCommandLine: [Job.ArgTemplate] = [.squashedArgumentList(option: "--repl=", args: commandLine)] 30 | return Job( 31 | moduleName: moduleOutputInfo.name, 32 | kind: .repl, 33 | tool: try toolchain.resolvedTool(.lldb), 34 | commandLine: lldbCommandLine, 35 | inputs: inputs, 36 | primaryInputs: [], 37 | outputs: [], 38 | requiresInPlaceExecution: true 39 | ) 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/Jobs/SwiftHelpIntroJob.swift: -------------------------------------------------------------------------------- 1 | //===--------------- SwiftHelpIntroJob.swift - Swift REPL -----------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | import SwiftOptions 13 | 14 | extension Driver { 15 | mutating func helpIntroJobs() throws -> [Job] { 16 | return [ 17 | Job( 18 | moduleName: moduleOutputInfo.name, 19 | kind: .help, 20 | tool: try toolchain.resolvedTool(.swiftHelp), 21 | commandLine: [.flag("intro")], 22 | inputs: [], 23 | primaryInputs: [], 24 | outputs: [], 25 | requiresInPlaceExecution: false 26 | ), 27 | ] 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/Jobs/VerifyDebugInfoJob.swift: -------------------------------------------------------------------------------- 1 | //===------- VerifyDebugInfoJob.swift - Swift Debug Info Verification -----===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | extension Driver { 14 | func verifyDebugInfoJob(inputs: [TypedVirtualPath]) throws -> Job { 15 | assert(inputs.count == 1) 16 | let input = inputs[0] 17 | 18 | // This mirrors the clang driver's --verify-debug-info option. 19 | var commandLine = [Job.ArgTemplate]() 20 | commandLine.appendFlags("--verify", "--debug-info", "--eh-frame", "--quiet") 21 | commandLine.appendPath(input.file) 22 | 23 | return Job( 24 | moduleName: moduleOutputInfo.name, 25 | kind: .verifyDebugInfo, 26 | tool: try toolchain.resolvedTool(.dwarfdump), 27 | commandLine: commandLine, 28 | displayInputs: [], 29 | inputs: inputs, 30 | primaryInputs: [], 31 | outputs: [] 32 | ) 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/SwiftDriver.docc/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleName 6 | SwiftDriver 7 | CFBundleDisplayName 8 | SwiftDriver 9 | CFBundleIdentifier 10 | com.apple.swift-driver 11 | CFBundleDevelopmentRegion 12 | en 13 | CFBundleIconFile 14 | DocumentationIcon 15 | CFBundleIconName 16 | DocumentationIcon 17 | CFBundlePackageType 18 | DOCS 19 | CFBundleShortVersionString 20 | 0.1.0 21 | CDDefaultCodeListingLanguage 22 | swift 23 | CFBundleVersion 24 | 0.1.0 25 | CDAppleDefaultAvailability 26 | 27 | SwiftDriver 28 | 29 | 30 | name 31 | macOS 32 | version 33 | 10.15 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/SwiftDriver.docc/SwiftDriver.md: -------------------------------------------------------------------------------- 1 | # ``SwiftDriver`` 2 | 3 | A native compiler driver for the Swift language. 4 | 5 | ## Overview 6 | 7 | The `SwiftDriver` framework coordinates the compilation of Swift source code 8 | into various compiled results: executables, libraries, object files, Swift 9 | modules and interfaces, etc. It is the program one invokes from the command line 10 | to build Swift code (i.e., swift or swiftc) and is often invoked on the 11 | developer's behalf by a build system such as the 12 | [Swift Package Manager](https://github.com/swiftlang/swift-package-manager) 13 | or Xcode's build system. 14 | 15 | ## Topics 16 | 17 | ### Fundamentals 18 | 19 | - 20 | - 21 | 22 | ### Toolchains 23 | 24 | - 25 | - 26 | - 27 | - 28 | 29 | ### Incremental Builds 30 | 31 | - 32 | 33 | ### Explicit Module Builds 34 | 35 | - 36 | 37 | ### Utilities 38 | 39 | - 40 | - 41 | - 42 | - 43 | - 44 | 45 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/Utilities/DOTJobGraphSerializer.swift: -------------------------------------------------------------------------------- 1 | //===--------------- DOTJobGraphSerializer.swift - Swift GraphViz ---------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | /// Serializes the job graph to a .dot file 14 | @_spi(Testing) public struct DOTJobGraphSerializer { 15 | var kindCounter = [Job.Kind: Int]() 16 | var hasEmittedStyling = Set() 17 | let jobs: [Job] 18 | 19 | /// Creates a serializer that will serialize the given set of top level jobs. 20 | public init(jobs: [Job]) { 21 | self.jobs = jobs 22 | } 23 | 24 | /// Gets the name of the tool that's being invoked from a job 25 | func findToolName(_ path: VirtualPath) -> String { 26 | switch path { 27 | case .absolute(let abs): return abs.components.last! 28 | case .relative(let rel): return rel.components.last! 29 | default: fatalError("no tool for kind \(path)") 30 | } 31 | } 32 | 33 | /// Gets a unique label for a job name 34 | mutating func label(for job: Job) -> String { 35 | var label = "\(job.kind)" 36 | if let count = kindCounter[job.kind] { 37 | label += " \(count)" 38 | } 39 | label += " (\(findToolName(job.tool)))" 40 | kindCounter[job.kind, default: 0] += 1 41 | return label 42 | } 43 | 44 | /// Quote the name and escape the quotes 45 | func quoteName(_ name: String) -> String { 46 | return "\"" + name.replacingOccurrences(of: "\"", with: "\\\"") + "\"" 47 | } 48 | 49 | public mutating func writeDOT(to stream: inout Stream) { 50 | stream.write("digraph Jobs {\n") 51 | for job in jobs { 52 | let jobName = quoteName(label(for: job)) 53 | if !hasEmittedStyling.contains(jobName) { 54 | stream.write(" \(jobName) [style=bold];\n") 55 | } 56 | for input in job.inputs { 57 | let inputName = quoteName(input.file.name) 58 | if hasEmittedStyling.insert(inputName).inserted { 59 | stream.write(" \(inputName) [fontsize=12];\n") 60 | } 61 | stream.write(" \(inputName) -> \(jobName) [color=blue];\n") 62 | } 63 | for output in job.outputs { 64 | let outputName = quoteName(output.file.name) 65 | if hasEmittedStyling.insert(outputName).inserted { 66 | stream.write(" \(outputName) [fontsize=12];\n") 67 | } 68 | stream.write(" \(jobName) -> \(outputName) [color=green];\n") 69 | } 70 | } 71 | stream.write("}\n") 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/Utilities/DOTModuleDependencyGraphSerializer.swift: -------------------------------------------------------------------------------- 1 | //===----------- DOTModuleDependencyGraphSerializer.swift - Swift ---------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | import TSCBasic 13 | 14 | /// Serializes a module dependency graph to a .dot graph 15 | @_spi(Testing) public struct DOTModuleDependencyGraphSerializer { 16 | let graph: InterModuleDependencyGraph 17 | 18 | public init(_ interModuleDependencyGraph: InterModuleDependencyGraph) { 19 | self.graph = interModuleDependencyGraph 20 | } 21 | 22 | func label(for moduleId: ModuleDependencyId) -> String { 23 | let label: String 24 | switch moduleId { 25 | case .swift(let string): 26 | label = "\(string)" 27 | case .swiftPlaceholder(let string): 28 | label = "\(string) (Placeholder)" 29 | case .swiftPrebuiltExternal(let string): 30 | label = "\(string) (Prebuilt)" 31 | case .clang(let string): 32 | label = "\(string) (C)" 33 | } 34 | return label 35 | } 36 | 37 | func quoteName(_ name: String) -> String { 38 | return "\"" + name.replacingOccurrences(of: "\"", with: "\\\"") + "\"" 39 | } 40 | 41 | func outputNode(for moduleId: ModuleDependencyId) -> String { 42 | let nodeName = quoteName(label(for: moduleId)) 43 | let output: String 44 | let font = "fontname=\"Helvetica Bold\"" 45 | 46 | if moduleId == .swift(graph.mainModuleName) { 47 | output = " \(nodeName) [shape=box, style=bold, color=navy, \(font)];\n" 48 | } else { 49 | switch moduleId { 50 | case .swift(_): 51 | output = " \(nodeName) [style=bold, color=orange, style=filled, \(font)];\n" 52 | case .swiftPlaceholder(_): 53 | output = " \(nodeName) [style=bold, color=gold, style=filled, \(font)];\n" 54 | case .swiftPrebuiltExternal(_): 55 | output = " \(nodeName) [style=bold, color=darkorange3, style=filled, \(font)];\n" 56 | case .clang(_): 57 | output = " \(nodeName) [style=bold, color=lightskyblue, style=filled, \(font)];\n" 58 | } 59 | } 60 | return output 61 | } 62 | 63 | public func writeDOT(to stream: inout Stream) { 64 | stream.write("digraph Modules {\n") 65 | for (moduleId, moduleInfo) in graph.modules { 66 | stream.write(outputNode(for: moduleId)) 67 | for dependencyId in moduleInfo.allDependencies { 68 | stream.write(" \(quoteName(label(for: moduleId))) -> \(quoteName(label(for: dependencyId))) [color=black];\n") 69 | } 70 | } 71 | stream.write("}\n") 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/Utilities/FileList.swift: -------------------------------------------------------------------------------- 1 | //===--------------- FileList.swift - File list model ---------------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | 14 | public enum FileList: Hashable { 15 | /// File of file paths 16 | case list([VirtualPath]) 17 | /// YAML OutputFileMap 18 | case outputFileMap(OutputFileMap) 19 | } 20 | 21 | extension FileList: Codable { 22 | private enum Key: String, Codable { 23 | case list 24 | case outputFileMap 25 | } 26 | 27 | public init(from decoder: Decoder) throws { 28 | var container = try decoder.unkeyedContainer() 29 | let key = try container.decode(Key.self) 30 | switch key { 31 | case .list: 32 | let contents = try container.decode([VirtualPath].self) 33 | self = .list(contents) 34 | case .outputFileMap: 35 | let map = try container.decode(OutputFileMap.self) 36 | self = .outputFileMap( map) 37 | } 38 | } 39 | 40 | public func encode(to encoder: Encoder) throws { 41 | var container = encoder.unkeyedContainer() 42 | switch self { 43 | case let .list(contents): 44 | try container.encode(Key.list) 45 | try container.encode(contents) 46 | case let .outputFileMap(map): 47 | try container.encode(Key.outputFileMap) 48 | try container.encode(map) 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/Utilities/PredictableRandomNumberGenerator.swift: -------------------------------------------------------------------------------- 1 | //===------------ PredictableRandomNumberGenerator.swift ------------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | /// An _insecure_ random number generator which given an initial seed will generate a _predictable_ 14 | /// sequence of pseudo-random numbers. This generator is not thread safe. 15 | /// 16 | /// The generator uses the [xoshiro256**](http://prng.di.unimi.it/xoshiro256starstar.c) 17 | /// algorithm to produce its output. It is initialized using the 18 | /// [splitmix64](http://prng.di.unimi.it/splitmix64.c) algorithm. 19 | @_spi(Testing) public struct PredictableRandomNumberGenerator: RandomNumberGenerator { 20 | 21 | var state: (UInt64, UInt64, UInt64, UInt64) 22 | 23 | public init(seed: UInt64) { 24 | func initNext(_ state: inout UInt64) -> UInt64 { 25 | state = state &+ 0x9e3779b97f4a7c15 26 | var z = state 27 | z = (z ^ (z &>> 30)) &* 0xbf58476d1ce4e5b9 28 | z = (z ^ (z &>> 27)) &* 0x94d049bb133111eb 29 | return z ^ (z &>> 31) 30 | } 31 | 32 | var initState = seed 33 | state = (initNext(&initState), initNext(&initState), 34 | initNext(&initState), initNext(&initState)) 35 | } 36 | 37 | mutating public func next() -> UInt64 { 38 | defer { 39 | let t = state.1 &<< 17 40 | state.2 ^= state.0 41 | state.3 ^= state.1 42 | state.1 ^= state.2 43 | state.0 ^= state.3 44 | state.2 ^= t 45 | state.3 = state.3.rotateLeft(45) 46 | } 47 | return (state.1 &* 5).rotateLeft(7) &* 9 48 | } 49 | } 50 | 51 | fileprivate extension UInt64 { 52 | func rotateLeft(_ numBits: UInt8) -> UInt64 { 53 | return (self &<< numBits) | (self &>> (64 - numBits)) 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /Sources/SwiftDriver/Utilities/RelativePathAdditions.swift: -------------------------------------------------------------------------------- 1 | //===--------------- RelativePathAdditions.swift - Swift Relative Paths ---===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | import struct TSCBasic.AbsolutePath 14 | import struct TSCBasic.RelativePath 15 | 16 | extension RelativePath { 17 | /// Retrieve the basename of the relative path without any extensions, 18 | /// even if there are several, and without any leading dots. Roughly 19 | /// equivalent to the regex `/[^.]+/`. 20 | var basenameWithoutAllExts: String { 21 | firstBasename(of: basename) 22 | } 23 | } 24 | 25 | extension AbsolutePath { 26 | /// Retrieve the basename of the relative path without any extensions, 27 | /// even if there are several, and without any leading dots. Roughly 28 | /// equivalent to the regex `/[^.]+/`. 29 | var basenameWithoutAllExts: String { 30 | firstBasename(of: basename) 31 | } 32 | } 33 | 34 | fileprivate func firstBasename(of name: String) -> String { 35 | var copy = name[...] 36 | 37 | // Remove leading dots, as in dotfiles. 38 | if let i = copy.firstIndex(where: { $0 != "." }) { 39 | copy.removeSubrange(..=5.0) 4 | @_exported import G 5 | import Swift 6 | public func overlayFuncG() { } 7 | #endif 8 | import D 9 | -------------------------------------------------------------------------------- /TestInputs/ExplicitModuleBuilds/Swift/H.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name H 3 | import G 4 | public func funcH() { } -------------------------------------------------------------------------------- /TestInputs/ExplicitModuleBuilds/Swift/I.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name I 3 | import unknown_module 4 | public func funcI() { } -------------------------------------------------------------------------------- /TestInputs/ExplicitModuleBuilds/Swift/J.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name J 3 | import G 4 | public func funcJ() { } -------------------------------------------------------------------------------- /TestInputs/ExplicitModuleBuilds/Swift/O.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name O -parse-stdlib 3 | public func none() { } 4 | -------------------------------------------------------------------------------- /TestInputs/ExplicitModuleBuilds/Swift/R.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name R 3 | import Swift -------------------------------------------------------------------------------- /TestInputs/ExplicitModuleBuilds/Swift/S.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name S 3 | import W 4 | public func funcS() { } -------------------------------------------------------------------------------- /TestInputs/ExplicitModuleBuilds/Swift/T.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name T 3 | import R 4 | import J 5 | public func funcC() { } -------------------------------------------------------------------------------- /TestInputs/ExplicitModuleBuilds/Swift/W.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name W 3 | import I 4 | public func funcW() { } -------------------------------------------------------------------------------- /TestInputs/ExplicitModuleBuilds/Swift/Y.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name Y 3 | import H 4 | import R 5 | public func funcB() { } -------------------------------------------------------------------------------- /TestInputs/Incremental/hello.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/Incremental/hello.swiftdeps -------------------------------------------------------------------------------- /TestInputs/Incremental/hello.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/Incremental/hello.swiftmodule -------------------------------------------------------------------------------- /TestInputs/Incremental/main.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/Incremental/main.swiftdeps -------------------------------------------------------------------------------- /TestInputs/Incremental/main.swiftdeps.yaml: -------------------------------------------------------------------------------- 1 | # Fine-grained v0 2 | --- 3 | allNodes: 4 | - key: 5 | kind: sourceFileProvide 6 | aspect: interface 7 | context: '' 8 | name: main.swiftdeps 9 | fingerprint: ec443bb982c3a06a433bdd47b85eeba2 10 | sequenceNumber: 0 11 | defsIDependUpon: [ 2 ] 12 | isProvides: true 13 | - key: 14 | kind: sourceFileProvide 15 | aspect: implementation 16 | context: '' 17 | name: main.swiftdeps 18 | fingerprint: ec443bb982c3a06a433bdd47b85eeba2 19 | sequenceNumber: 1 20 | defsIDependUpon: [ ] 21 | isProvides: true 22 | - key: 23 | kind: topLevel 24 | aspect: interface 25 | context: '' 26 | name: a 27 | sequenceNumber: 2 28 | defsIDependUpon: [ ] 29 | isProvides: false 30 | ... 31 | -------------------------------------------------------------------------------- /TestInputs/Platform Checks/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "13.0", 3 | "CanonicalName": "iphoneos13.0" 4 | } 5 | -------------------------------------------------------------------------------- /TestInputs/Platform Checks/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "15.0", 3 | "CanonicalName": "iphonesimulator15.0" 4 | } 5 | -------------------------------------------------------------------------------- /TestInputs/PrebuiltModules-macOS10.15.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/10.15/.empty-file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/PrebuiltModules-macOS10.15.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/10.15/.empty-file -------------------------------------------------------------------------------- /TestInputs/PrebuiltModules-macOSUnversioned.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/.empty-file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/PrebuiltModules-macOSUnversioned.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/.empty-file -------------------------------------------------------------------------------- /TestInputs/SDKChecks/MacOSX10.10.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "10.10", 3 | "VersionMap": { 4 | "macOS_iOSMac": {}, 5 | "iOSMac_macOS": {} 6 | }, 7 | "CanonicalName": "macosx10.10" 8 | } 9 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/MacOSX10.11.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "10.11", 3 | "VersionMap": { 4 | "macOS_iOSMac": {}, 5 | "iOSMac_macOS": {} 6 | }, 7 | "CanonicalName": "macosx10.11" 8 | } 9 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/MacOSX10.14.Internal.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "10.14", 3 | "VersionMap": { 4 | "macOS_iOSMac": {}, 5 | "iOSMac_macOS": {} 6 | }, 7 | "CanonicalName": "macosx10.14internal" 8 | } 9 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/MacOSX10.15.4.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "10.15.4", 3 | "VersionMap": { 4 | "macOS_iOSMac": {}, 5 | "iOSMac_macOS": {} 6 | }, 7 | "CanonicalName": "macosx10.15.4" 8 | } 9 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/MacOSX10.15.Internal.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "10.15", 3 | "VersionMap": { 4 | "macOS_iOSMac": {}, 5 | "iOSMac_macOS": {} 6 | }, 7 | "CanonicalName": "macosx10.15internal" 8 | } 9 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/MacOSX10.15.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "10.15", 3 | "VersionMap": { 4 | "macOS_iOSMac": {"10.15":"13.3"}, 5 | "iOSMac_macOS": {"13.3":"10.15"} 6 | }, 7 | "CanonicalName": "macosx10.15" 8 | } 9 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/MacOSX10.8.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "10.8", 3 | "VersionMap": { 4 | "macOS_iOSMac": {}, 5 | "iOSMac_macOS": {} 6 | }, 7 | "CanonicalName": "macosx10.8" 8 | } 9 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/MacOSX10.9.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "10.9", 3 | "VersionMap": { 4 | "macOS_iOSMac": {}, 5 | "iOSMac_macOS": {} 6 | }, 7 | "CanonicalName": "macosx10.9" 8 | } 9 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/MacOSX7.17.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "7.17", 3 | "VersionMap": { 4 | "macOS_iOSMac": {}, 5 | "iOSMac_macOS": {} 6 | }, 7 | "CanonicalName": "macosx7.17" 8 | } 9 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/iPhoneOS.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "13.0", 3 | "CanonicalName": "iphoneos13.0" 4 | } 5 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/iPhoneOS12.99.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "12.99", 3 | "CanonicalName": "iphoneos12.99" 4 | } 5 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/iPhoneOS13.0.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "13.0", 3 | "CanonicalName": "iphoneos13.0" 4 | } 5 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/iPhoneOS7.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "7.0", 3 | "CanonicalName": "iphoneos7.0" 4 | } 5 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/iPhoneSimulator7.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "7.0", 3 | "CanonicalName": "iphonesimulator7.0" 4 | } 5 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/tvOS.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "13.0", 3 | "CanonicalName": "appletvos13.0" 4 | } 5 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/tvOS13.0.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "13.0", 3 | "CanonicalName": "appletvos13.0" 4 | } 5 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/tvOS8.0.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "8.0", 3 | "CanonicalName": "appletvos8.0" 4 | } 5 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/watchOS.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "7.0", 3 | "CanonicalName": "watchos7.0" 4 | } 5 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/watchOS2.0.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "2.0", 3 | "CanonicalName": "watchos2.0" 4 | } 5 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/watchOS3.0.Internal.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "3.0", 3 | "CanonicalName": "watchos3.0internal" 4 | } 5 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/watchOS3.0.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "3.0", 3 | "CanonicalName": "watchos3.0" 4 | } 5 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/watchOS6.0.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "6.0", 3 | "CanonicalName": "watchos6.0" 4 | } 5 | -------------------------------------------------------------------------------- /TestInputs/SDKChecks/watchSimulator6.0.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "6.0", 3 | "CanonicalName": "watchsimulator6.0" 4 | } 5 | -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/APIDigesterJobs.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/APIDigesterJobs.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/AddOn.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/AddOn.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Archiver.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Archiver.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ArgsResolver.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ArgsResolver.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Argument.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Argument.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ArgumentDecoder.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ArgumentDecoder.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ArgumentDefinition.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ArgumentDefinition.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ArgumentHelp.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ArgumentHelp.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ArgumentParser.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ArgumentParser.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ArgumentParserShellCompletion.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ArgumentParserShellCompletion.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ArgumentSet.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ArgumentSet.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Array+Extensions.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Array+Extensions.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/AutolinkExtractJob.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/AutolinkExtractJob.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Await.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Await.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/BackendJob.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/BackendJob.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Base64URL.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Base64URL.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/BashCompletionsGenerator.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/BashCompletionsGenerator.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Bits.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Bits.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Bitstream.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Bitstream.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/BitstreamReader.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/BitstreamReader.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/BitstreamWriter.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/BitstreamWriter.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/BuildDBBindings.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/BuildDBBindings.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/BuildFlags.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/BuildFlags.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/BuildKey.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/BuildKey.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/BuildRecord.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/BuildRecord.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/BuildRecordInfo.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/BuildRecordInfo.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/BuildSystemBindings.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/BuildSystemBindings.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/BuildValue.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/BuildValue.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ByteString.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ByteString.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/CStringArray.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/CStringArray.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/CacheableSequence.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/CacheableSequence.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ClangVersionedDependencyResolution.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ClangVersionedDependencyResolution.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Closable.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Closable.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/CodableResult.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/CodableResult.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/CollectionAlgorithms.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/CollectionAlgorithms.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/CollectionExtensions.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/CollectionExtensions.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/CommandConfiguration.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/CommandConfiguration.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/CommandLineArguments.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/CommandLineArguments.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/CommandParser.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/CommandParser.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/CommonDependencyOperations.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/CommonDependencyOperations.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/CompileJob.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/CompileJob.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/CompiledSourceCollector.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/CompiledSourceCollector.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/CompilerMode.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/CompilerMode.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/CompletionKind.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/CompletionKind.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/CompletionsGenerator.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/CompletionsGenerator.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Condition.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Condition.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Constructor.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Constructor.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Context.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Context.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/CoreBindings.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/CoreBindings.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/DOTJobGraphSerializer.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/DOTJobGraphSerializer.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/DarwinToolchain+LinkerSupport.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/DarwinToolchain+LinkerSupport.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/DarwinToolchain.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/DarwinToolchain.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/DateAdditions.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/DateAdditions.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/DebugInfo.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/DebugInfo.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Decoder.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Decoder.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/DeltaAlgorithm.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/DeltaAlgorithm.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/DependencyGraphBuilder.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/DependencyGraphBuilder.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/DependencyGraphDotFileWriter.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/DependencyGraphDotFileWriter.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/DependencyKey.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/DependencyKey.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/DependencySource.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/DependencySource.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Diagnostics.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Diagnostics.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/DiagnosticsEngine.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/DiagnosticsEngine.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/DictionaryExtensions.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/DictionaryExtensions.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/DictionaryLiteralExtensions.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/DictionaryLiteralExtensions.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/DirectAndTransitiveCollections.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/DirectAndTransitiveCollections.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Downloader.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Downloader.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Driver.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Driver.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/DriverExecutor.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/DriverExecutor.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/DriverExtensions.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/DriverExtensions.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/DriverKind.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/DriverKind.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/DriverVersion.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/DriverVersion.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/EditDistance.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/EditDistance.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/EmitModuleJob.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/EmitModuleJob.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/EmitSupportedFeaturesJob.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/EmitSupportedFeaturesJob.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Emitter.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Emitter.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Encoder.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Encoder.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/EnumerableFlag.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/EnumerableFlag.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Errors.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Errors.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Expectation.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Expectation.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ExpectedCompilations.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ExpectedCompilations.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ExpectedProcessResult.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ExpectedProcessResult.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ExplicitDependencyBuildPlanner.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ExplicitDependencyBuildPlanner.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ExpressibleByArgument.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ExpressibleByArgument.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ExternalDependencyAndFingerprintEnforcer.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ExternalDependencyAndFingerprintEnforcer.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ExtraOptions.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ExtraOptions.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/FSWatch.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/FSWatch.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/FileInfo.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/FileInfo.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/FileList.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/FileList.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/FileSystem.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/FileSystem.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/FileType.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/FileType.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/FirstWaveComputer.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/FirstWaveComputer.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/FishCompletionsGenerator.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/FishCompletionsGenerator.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Fixture.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Fixture.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Flag.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Flag.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/FloatingPointExtensions.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/FloatingPointExtensions.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/FrontendJobHelpers.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/FrontendJobHelpers.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/GenerateDSYMJob.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/GenerateDSYMJob.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/GeneratePCHJob.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/GeneratePCHJob.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/GeneratePCMJob.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/GeneratePCMJob.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/GenericUnixToolchain+LinkerSupport.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/GenericUnixToolchain+LinkerSupport.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/GenericUnixToolchain.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/GenericUnixToolchain.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Git.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Git.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/GraphAlgorithms.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/GraphAlgorithms.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/HashAlgorithms.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/HashAlgorithms.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/HelpCommand.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/HelpCommand.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/HelpGenerator.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/HelpGenerator.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Hex.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Hex.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/IncrementalCompilationState.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/IncrementalCompilationState.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/IncrementalDependencyAndInputSetup.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/IncrementalDependencyAndInputSetup.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/IncrementalTest.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/IncrementalTest.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/IndexStore.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/IndexStore.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/InputInfo.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/InputInfo.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/InputOrigin.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/InputOrigin.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Integrator.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Integrator.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/InterModuleDependencyGraph.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/InterModuleDependencyGraph.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/InterModuleDependencyOracle.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/InterModuleDependencyOracle.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Internals.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Internals.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/InterpretJob.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/InterpretJob.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/InterruptHandler.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/InterruptHandler.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/JSON.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/JSON.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/JSONMapper.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/JSONMapper.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/JSONMessageStreamingParser.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/JSONMessageStreamingParser.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Job.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Job.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/KeyAndFingerprintHolder.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/KeyAndFingerprintHolder.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/KeyedPair.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/KeyedPair.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/LazyCache.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/LazyCache.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/LinkJob.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/LinkJob.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/LinkKind.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/LinkKind.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Lock.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Lock.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Mark.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Mark.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/MergeModuleJob.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/MergeModuleJob.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/MessageInfo.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/MessageInfo.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Module.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Module.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ModuleDependencyGraph.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ModuleDependencyGraph.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ModuleDependencyScanning.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ModuleDependencyScanning.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ModuleOutputInfo.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ModuleOutputInfo.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ModuleWrapJob.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ModuleWrapJob.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/MultiJobExecutor.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/MultiJobExecutor.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Multidictionary.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Multidictionary.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Name.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Name.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/NameSpecification.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/NameSpecification.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Netrc.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Netrc.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Node.Mapping.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Node.Mapping.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Node.Scalar.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Node.Scalar.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Node.Sequence.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Node.Sequence.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Node.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Node.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/NodeFinder.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/NodeFinder.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/OSLog.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/OSLog.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ObjectIdentifierProtocol.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ObjectIdentifierProtocol.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Option.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Option.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/OptionGroup.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/OptionGroup.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/OptionParsing.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/OptionParsing.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/OptionTable.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/OptionTable.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Options.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Options.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/OrderedDictionary.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/OrderedDictionary.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/OrderedSet.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/OrderedSet.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/OrderedZip.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/OrderedZip.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/OutputFileMap.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/OutputFileMap.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/OutputFileMapCreator.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/OutputFileMapCreator.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ParsableArguments.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ParsableArguments.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ParsableArgumentsValidation.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ParsableArgumentsValidation.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ParsableCommand.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ParsableCommand.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ParsableOutput.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ParsableOutput.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Parsed.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Parsed.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ParsedOptions.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ParsedOptions.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ParsedValues.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ParsedValues.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Parser.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Parser.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ParserError.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ParserError.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Path.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Path.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/PathShims.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/PathShims.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/PersistenceCache.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/PersistenceCache.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/PkgConfig.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/PkgConfig.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Planning.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Planning.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Platform.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Platform.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/PolymorphicCodable.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/PolymorphicCodable.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/PrebuiltModulesJob.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/PrebuiltModulesJob.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/PredictableRandomNumberGenerator.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/PredictableRandomNumberGenerator.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/PrefixTrie.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/PrefixTrie.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/PrintTargetInfoJob.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/PrintTargetInfoJob.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Process.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Process.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ProcessEnv.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ProcessEnv.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ProcessProtocol.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ProcessProtocol.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ProcessSet.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ProcessSet.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ProgressAnimation.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ProgressAnimation.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/RegEx.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/RegEx.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/RelativePathAdditions.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/RelativePathAdditions.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ReplJob.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ReplJob.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Representer.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Representer.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Resolver.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Resolver.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Result.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Result.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/SQLite.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/SQLite.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Sanitizer.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Sanitizer.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/SequenceExtensions.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/SequenceExtensions.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/SerializableModuleArtifacts.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/SerializableModuleArtifacts.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/SerializedDiagnostics.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/SerializedDiagnostics.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/SimplePersistence.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/SimplePersistence.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/SortedArray.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/SortedArray.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Source.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Source.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/SourceFileDependencyGraph.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/SourceFileDependencyGraph.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/SplitArguments.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/SplitArguments.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Step.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Step.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/String+Yams.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/String+Yams.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/StringAdditions.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/StringAdditions.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/StringConversions.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/StringConversions.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/StringExtensions.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/StringExtensions.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/StringMangling.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/StringMangling.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/SwiftDriverExecutor.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/SwiftDriverExecutor.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/SwiftScan.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/SwiftScan.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/SynchronizedQueue.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/SynchronizedQueue.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/System.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/System.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Tag.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Tag.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/TemporaryFile.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/TemporaryFile.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/TemporaryFileMatching.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/TemporaryFileMatching.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/TerminalController.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/TerminalController.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Thread.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Thread.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ToolExecutionDelegate.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ToolExecutionDelegate.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Toolchain+InterpreterSupport.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Toolchain+InterpreterSupport.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Toolchain+LinkerSupport.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Toolchain+LinkerSupport.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Toolchain.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Toolchain.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Tracer.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Tracer.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Tracing.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Tracing.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Tree.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Tree.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Triple+Platforms.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Triple+Platforms.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Triple.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Triple.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Tuple.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Tuple.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/TwoDMap.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/TwoDMap.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/TwoLevelMap.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/TwoLevelMap.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/TypedVirtualPath.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/TypedVirtualPath.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/URL.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/URL.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/UsageGenerator.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/UsageGenerator.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Verbosity.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Verbosity.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/VerifyDebugInfoJob.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/VerifyDebugInfoJob.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/VerifyModuleInterfaceJob.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/VerifyModuleInterfaceJob.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Version.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Version.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/VersionExtensions.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/VersionExtensions.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/Versioning.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/Versioning.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/VirtualPath.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/VirtualPath.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/WebAssemblyToolchain+LinkerSupport.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/WebAssemblyToolchain+LinkerSupport.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/WebAssemblyToolchain.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/WebAssemblyToolchain.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/WritableByteStream.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/WritableByteStream.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/YamlError.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/YamlError.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/ZshCompletionsGenerator.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/ZshCompletionsGenerator.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/dlopen.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/dlopen.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/libc.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/libc.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/llbuild.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/llbuild.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/main.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/main.swiftdeps -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/master.swiftdeps: -------------------------------------------------------------------------------- 1 | version: "Apple Swift version 5.5 (swiftlang-1300.0.24.7 clang-1300.0.23.1)" 2 | options: "3ceaa05b1c0ed3cbf21b02034b352536006f74e8438cda5ec737e54a58b529e0" 3 | build_start_time: [1627665162, 69974899] 4 | build_end_time: [1627665165, 499423027] 5 | inputs: 6 | "/Volumes/AS/repos/swift-driver/swift-driver/.build/checkouts/Yams/Sources/Yams/Constructor.swift": [1627665152, 24553775] 7 | "/Volumes/AS/repos/swift-driver/swift-driver/.build/checkouts/Yams/Sources/Yams/Decoder.swift": [1627665152, 24842262] 8 | "/Volumes/AS/repos/swift-driver/swift-driver/.build/checkouts/Yams/Sources/Yams/Emitter.swift": [1627665152, 25173187] 9 | "/Volumes/AS/repos/swift-driver/swift-driver/.build/checkouts/Yams/Sources/Yams/Encoder.swift": [1627665152, 25722026] 10 | "/Volumes/AS/repos/swift-driver/swift-driver/.build/checkouts/Yams/Sources/Yams/Mark.swift": [1627665152, 25939464] 11 | "/Volumes/AS/repos/swift-driver/swift-driver/.build/checkouts/Yams/Sources/Yams/Node.Mapping.swift": [1627665152, 26179313] 12 | "/Volumes/AS/repos/swift-driver/swift-driver/.build/checkouts/Yams/Sources/Yams/Node.Scalar.swift": [1627665152, 26351451] 13 | "/Volumes/AS/repos/swift-driver/swift-driver/.build/checkouts/Yams/Sources/Yams/Node.Sequence.swift": [1627665152, 26534557] 14 | "/Volumes/AS/repos/swift-driver/swift-driver/.build/checkouts/Yams/Sources/Yams/Node.swift": [1627665152, 26773452] 15 | "/Volumes/AS/repos/swift-driver/swift-driver/.build/checkouts/Yams/Sources/Yams/Parser.swift": [1627665152, 26996135] 16 | "/Volumes/AS/repos/swift-driver/swift-driver/.build/checkouts/Yams/Sources/Yams/Representer.swift": [1627665152, 27221679] 17 | "/Volumes/AS/repos/swift-driver/swift-driver/.build/checkouts/Yams/Sources/Yams/Resolver.swift": [1627665152, 27447700] 18 | "/Volumes/AS/repos/swift-driver/swift-driver/.build/checkouts/Yams/Sources/Yams/String+Yams.swift": [1627665152, 27634620] 19 | "/Volumes/AS/repos/swift-driver/swift-driver/.build/checkouts/Yams/Sources/Yams/Tag.swift": [1627665152, 27837753] 20 | "/Volumes/AS/repos/swift-driver/swift-driver/.build/checkouts/Yams/Sources/Yams/YamlError.swift": [1627665152, 28302192] 21 | -------------------------------------------------------------------------------- /TestInputs/SampleSwiftDeps/misc.swiftdeps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/SampleSwiftDeps/misc.swiftdeps -------------------------------------------------------------------------------- /TestInputs/mock-sdk.Internal.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "10.15", 3 | "VersionMap": { 4 | "macOS_iOSMac": {}, 5 | "iOSMac_macOS": {} 6 | }, 7 | "CanonicalName": "macosx10.15" 8 | } 9 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.Internal.sdk/System/Library/Frameworks/B.framework/Modules/B.swiftmodule/arm64-apple-macos.private.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name E 3 | import Swift 4 | public func FuncE() { } 5 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.Internal.sdk/System/Library/Frameworks/B.framework/Modules/B.swiftmodule/arm64-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name E 3 | import Swift 4 | public func FuncE() { } 5 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.Internal.sdk/System/Library/Frameworks/B.framework/Modules/B.swiftmodule/arm64e-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name E 3 | import Swift 4 | public func FuncE() { } 5 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.Internal.sdk/System/Library/Frameworks/B.framework/Modules/B.swiftmodule/x86_64-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name E 3 | import Swift 4 | public func FuncE() { } 5 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.Internal.sdk/System/Library/Frameworks/B.framework/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module B [extern_c] { 2 | umbrella header "B.h" 3 | export * 4 | module * { export * } 5 | } 6 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.Internal.sdk/System/Library/Frameworks/B.framework/PrivateHeaders/B-Swift.h: -------------------------------------------------------------------------------- 1 | // Nothing interesting -------------------------------------------------------------------------------- /TestInputs/mock-sdk.Internal.sdk/System/Library/Frameworks/C.framework/Headers/C-API.h: -------------------------------------------------------------------------------- 1 | // nothing interesting -------------------------------------------------------------------------------- /TestInputs/mock-sdk.Internal.sdk/System/Library/Frameworks/C.framework/Modules/C.swiftmodule/arm64-apple-macos.private.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name C 3 | import Swift 4 | public func FuncE() { } 5 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.Internal.sdk/System/Library/Frameworks/C.framework/Modules/C.swiftmodule/arm64-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name C 3 | import Swift 4 | public func FuncE() { } 5 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.Internal.sdk/System/Library/Frameworks/C.framework/Modules/C.swiftmodule/arm64e-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name C 3 | import Swift 4 | public func FuncE() { } 5 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.Internal.sdk/System/Library/Frameworks/C.framework/Modules/C.swiftmodule/x86_64-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name C 3 | import Swift 4 | public func FuncE() { } 5 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.Internal.sdk/System/Library/Frameworks/C.framework/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module C [extern_c] { 2 | umbrella header "C.h" 3 | export * 4 | module * { export * } 5 | } 6 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.Internal.sdk/usr/lib/swift/A.swiftmodule/arm64-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name A 3 | import Swift 4 | public func FuncA() { } 5 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.Internal.sdk/usr/lib/swift/A.swiftmodule/arm64e-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name A 3 | import Swift 4 | public func FuncA() { } 5 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.Internal.sdk/usr/lib/swift/A.swiftmodule/x86_64-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name A 3 | import Swift 4 | public func FuncA() { } 5 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/SDKSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "10.15", 3 | "VersionMap": { 4 | "macOS_iOSMac": {}, 5 | "iOSMac_macOS": {} 6 | }, 7 | "CanonicalName": "macosx10.15" 8 | } 9 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/System/iOSSupport/usr/lib/swift/MissingKit.swiftmodule/arm64e.swiftinterface: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/mock-sdk.sdk/System/iOSSupport/usr/lib/swift/MissingKit.swiftmodule/arm64e.swiftinterface -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/System/iOSSupport/usr/lib/swift/MissingKit.swiftmodule/x86_64.swiftinterface: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftlang/swift-driver/1e7b2be28efadba025404fb157e1f3f6dde66801/TestInputs/mock-sdk.sdk/System/iOSSupport/usr/lib/swift/MissingKit.swiftmodule/x86_64.swiftinterface -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/usr/lib/swift/A.swiftmodule/arm64-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name A 3 | import Swift 4 | public func FuncA() { } 5 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/usr/lib/swift/A.swiftmodule/arm64e-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name A 3 | import Swift 4 | public func FuncA() { } 5 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/usr/lib/swift/A.swiftmodule/x86_64-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name A 3 | import Swift 4 | public func FuncA() { } 5 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/usr/lib/swift/E.swiftmodule/arm64-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name E 3 | import Swift 4 | public func FuncE() { } 5 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/usr/lib/swift/E.swiftmodule/arm64e-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name E 3 | import Swift 4 | public func FuncE() { } 5 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/usr/lib/swift/E.swiftmodule/x86_64-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name E 3 | import Swift 4 | public func FuncE() { } 5 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/usr/lib/swift/F.swiftmodule/arm64-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name F 3 | import Swift 4 | import A 5 | public func FuncF() { } 6 | 7 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/usr/lib/swift/F.swiftmodule/arm64e-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name F 3 | import Swift 4 | import A 5 | public func FuncF() { } 6 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/usr/lib/swift/F.swiftmodule/x86_64-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name F 3 | import Swift 4 | import A 5 | public func FuncF() { } 6 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/usr/lib/swift/G.swiftmodule/arm64-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name G 3 | import Swift 4 | import E 5 | public func FuncG() { } 6 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/usr/lib/swift/G.swiftmodule/arm64e-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name G 3 | import Swift 4 | import E 5 | public func FuncG() { } 6 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/usr/lib/swift/G.swiftmodule/x86_64-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name G 3 | import Swift 4 | import E 5 | public func FuncG() { } 6 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/usr/lib/swift/H.swiftmodule/arm64-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name H 3 | import Swift 4 | import A 5 | import E 6 | import F 7 | import G 8 | public func FuncH() { } 9 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/usr/lib/swift/H.swiftmodule/arm64e-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name H 3 | import Swift 4 | import A 5 | import E 6 | import F 7 | import G 8 | public func FuncH() { } 9 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/usr/lib/swift/H.swiftmodule/x86_64-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -module-name H 3 | import Swift 4 | import A 5 | import E 6 | import F 7 | import G 8 | public func FuncH() { } 9 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/usr/lib/swift/Swift.swiftmodule/arm64-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -parse-stdlib -module-name Swift 3 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -parse-stdlib -module-name Swift 3 | -------------------------------------------------------------------------------- /TestInputs/mock-sdk.sdk/usr/lib/swift/Swift.swiftmodule/x86_64-apple-macos.swiftinterface: -------------------------------------------------------------------------------- 1 | // swift-interface-format-version: 1.0 2 | // swift-module-flags: -parse-stdlib -module-name Swift 3 | -------------------------------------------------------------------------------- /Tests/IncrementalImportTests/RenameMemberOfImportedStructTest.swift: -------------------------------------------------------------------------------- 1 | //===--------------- IncrementalImportTests.swift - Swift Testing ---------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | import XCTest 13 | import TSCBasic 14 | 15 | @_spi(Testing) import SwiftDriver 16 | import SwiftOptions 17 | import IncrementalTestFramework 18 | 19 | 20 | /// Rename an imported member and see that non-users of the struct are not recompiled. 21 | class RenameMemberOfImportedStructTest: XCTestCase { 22 | func testRenamingMember() throws { 23 | 24 | // MARK: - Define the imported module 25 | 26 | let memberDefiner = Source(named: "memberDefiner", containing: """ 27 | // Define the structure 28 | public struct ImportedStruct { 29 | public init() {} 30 | public func importedMember() {} 31 | // Simulate a name change: 32 | //# original public func nameToBeChanged() {} 33 | //# renamed public func wasRenamed() {} 34 | } 35 | """) 36 | 37 | let imported = Module(named: "imported", 38 | containing: [memberDefiner], 39 | producing: .library) 40 | 41 | // MARK: - Define the main module 42 | 43 | let main = Source(named: "main", containing: """ 44 | // Import the structure and use it 45 | import \(imported.name) 46 | ImportedStruct().importedMember() 47 | """) 48 | let other = Source(named: "other", containing: """ 49 | // Import the module but don't use the imported structure 50 | import \(imported.name) 51 | """) 52 | 53 | let mainModule = Module(named: "mainModule", 54 | containing: [main, other], 55 | importing: [imported], 56 | producing: .executable) 57 | 58 | let modules = [imported, mainModule] 59 | 60 | /// Incremental imports save a recompilation. 61 | let whenRenaming = ExpectedCompilations(expected: [memberDefiner, main]) 62 | 63 | let steps = [ 64 | Step(adding: ["original"], building: modules, .expecting(modules.allSourcesToCompile)), 65 | Step(adding: ["original"], building: modules, .expecting(.none)), 66 | Step(adding: ["renamed"], building: modules, .expecting(whenRenaming)), 67 | Step(adding: ["original"], building: modules, .expecting(whenRenaming)), 68 | Step(adding: ["renamed"], building: modules, .expecting(whenRenaming)), 69 | ] 70 | try IncrementalTest.perform(steps) 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /Tests/IncrementalTestFramework/AddOn.swift: -------------------------------------------------------------------------------- 1 | //===------------------ AddOn.swift - Swift Testing -----------------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | /// An `AddOn` allows for extra code to be added to file to test what is compiled then. 14 | /// The syntax is `//# ` where the `` is replaced by some word. 15 | /// (There must be exactly one space after the '#') 16 | /// For example the line `var gazorp //# initGazorp = 17` 17 | /// will normally be compiled as written. But if the `Step` includes `initGazorp` in its `addOns` 18 | /// the line passed to the compiler will be `var gazorp = 17` 19 | public struct AddOn { 20 | /// The name of the `AddOn`. That is, the identifier in the above description. 21 | public let name: String 22 | 23 | init(named name: String) { 24 | self.name = name 25 | } 26 | 27 | /// Adjust a string to reflect the effect of this `AddOn`. 28 | func adjust(_ s: String) -> String { 29 | s.replacingOccurrences(of: "//# \(name)", with: "") 30 | } 31 | } 32 | 33 | extension Array where Element == AddOn { 34 | func adjust(_ source: String) -> String { 35 | reduce(source) {adjusted, addOn in addOn.adjust(adjusted)} 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Tests/IncrementalTestFramework/CompiledSourceCollector.swift: -------------------------------------------------------------------------------- 1 | //===---------- CompiledSourceCollector.swift - Swift Testing -------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | import XCTest 13 | import TSCBasic 14 | 15 | @_spi(Testing) import SwiftDriver 16 | import SwiftOptions 17 | import TestUtilities 18 | 19 | /// Creates a `DiagnosticsEngine` that collects which sources were compiled. 20 | /// 21 | /// - seealso: Test 22 | struct CompiledSourceCollector { 23 | private var collectedCompiledBasenames = [String]() 24 | private var collectedReadDependencies = Set() 25 | 26 | private func getCompiledBasenames(from d: Diagnostic) -> [String] { 27 | let dd = d.description 28 | guard let startOfSources = dd.range(of: "Starting Compiling ")?.upperBound 29 | else { 30 | return [] 31 | } 32 | return dd.suffix(from: startOfSources) 33 | .split(separator: ",") 34 | .map {$0.drop(while: {$0 == " "})} 35 | .map { (s: Substring) -> Substring in 36 | assert(s.hasSuffix(".swift")) 37 | return s 38 | } 39 | .compactMap {String($0)} 40 | } 41 | 42 | private func getReadDependencies(from d: Diagnostic) -> String? { 43 | let dd = d.description 44 | guard let startOfReading = dd.range(of: "Reading dependencies ")?.upperBound 45 | else { 46 | return nil 47 | } 48 | return String(dd.suffix(from: startOfReading)) 49 | } 50 | 51 | private mutating func appendReadDependency(_ dep: String) { 52 | let wasNew = collectedReadDependencies.insert(dep).inserted 53 | guard wasNew || dep.hasSuffix(FileType.swift.rawValue) 54 | else { 55 | XCTFail("Swiftmodule \(dep) read twice") 56 | return 57 | } 58 | } 59 | 60 | /// Process a diagnostic 61 | mutating func handle(diagnostic d: Diagnostic) { 62 | collectedCompiledBasenames.append(contentsOf: getCompiledBasenames(from: d)) 63 | getReadDependencies(from: d).map {appendReadDependency($0)} 64 | } 65 | 66 | /// Returns the basenames of the compiled files, e.g. for `/a/b/foo.swift`, returns `foo.swift`. 67 | var compiledBasenames: [String] { 68 | XCTAssertEqual(Set(collectedCompiledBasenames).count, collectedCompiledBasenames.count, 69 | "No file should be compiled twice") 70 | return collectedCompiledBasenames 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /Tests/IncrementalTestFramework/Expectation.swift: -------------------------------------------------------------------------------- 1 | //===-- Expectation.swift - Swift Testing ----===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | import XCTest 13 | import TSCBasic 14 | 15 | /// Everything expected from a step. 16 | public struct Expectation { 17 | let compilations: ExpectedCompilations 18 | 19 | /// If non-nil, the step produces an executable, and running it should produce this result. 20 | let output: ExpectedProcessResult? 21 | 22 | init(_ compilations: ExpectedCompilations, _ output: ExpectedProcessResult? = nil) { 23 | self.compilations = compilations 24 | self.output = output 25 | } 26 | 27 | public static func expecting(_ compilations: ExpectedCompilations, 28 | _ output: ExpectedProcessResult? = nil 29 | ) -> Self { 30 | self.init(compilations, output) 31 | } 32 | 33 | public static func expecting(_ compilations: ExpectedCompilations, _ output: String 34 | ) -> Self { 35 | self.init(compilations, ExpectedProcessResult(output: output)) 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Tests/IncrementalTestFramework/ExpectedCompilations.swift: -------------------------------------------------------------------------------- 1 | //===-------------- ExpectedCompilations.swift - Swift Testing -------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | import XCTest 13 | import TSCBasic 14 | 15 | /// The `Source`s expected to be compiled in a `Step`, when incremental imports are either enabled or disabled. 16 | public struct ExpectedCompilations { 17 | let expected: Set 18 | 19 | public init(expected: Set) { 20 | self.expected = expected 21 | } 22 | 23 | public init(allSourcesOf modules: [Module]) { 24 | self.init(expected: Set(modules.flatMap {$0.sources})) 25 | } 26 | 27 | /// Creates an `IncrementalImports` that expects no compilations. 28 | public static let none = Self(expected: []) 29 | 30 | /// Check the actual compilations against what `self` expects. 31 | /// Fails an `XCTest assertion` with a somewhat wordy message of things are not hunky-dory. 32 | /// - Parameters: 33 | /// - against: The actual compiled sources to check against. 34 | /// - step: The `Step` that changed the source, ran the compiler, and needs to check the results. 35 | /// - in: The context of this test. 36 | func check(against actuals: [Source], step: Step, in context: Context) { 37 | let expectedSet = Set(expected) 38 | let actualsSet = Set(actuals) 39 | 40 | let extraCompilations = actualsSet.subtracting(expectedSet).map {$0.name}.sorted() 41 | let missingCompilations = expectedSet.subtracting( actualsSet).map {$0.name}.sorted() 42 | 43 | XCTAssert(extraCompilations.isEmpty, 44 | "Extra compilations: \(extraCompilations), \(context.failMessage(step))", 45 | file: context.file, line: context.line) 46 | 47 | XCTAssert(missingCompilations.isEmpty, 48 | "Missing compilations: \(missingCompilations), \(context.failMessage(step))", 49 | file: context.file, line: context.line) 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Tests/IncrementalTestFramework/ExpectedProcessResult.swift: -------------------------------------------------------------------------------- 1 | //===-------------- swift -------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | import XCTest 13 | import TSCBasic 14 | 15 | public struct ExpectedProcessResult { 16 | let output: String 17 | let stderrOutput: String 18 | let expectedExitCode: Int32 19 | 20 | public init(output: String = "", stderrOutput: String = "", exitCode: Int32 = 0) { 21 | self.output = output 22 | self.stderrOutput = stderrOutput 23 | self.expectedExitCode = exitCode 24 | } 25 | 26 | func check(against actual: ProcessResult?, step: Step, in context: Context) throws { 27 | guard let actual = actual else { 28 | context.fail("No result", step) 29 | return 30 | } 31 | guard case let .terminated(actualExitCode) = actual.exitStatus 32 | else { 33 | context.fail("failed to run", step) 34 | return 35 | } 36 | XCTAssertEqual(actualExitCode, expectedExitCode, 37 | context.failMessage(step), 38 | file: context.file, line: context.line) 39 | try XCTAssertEqual(output, actual.utf8Output().spm_chomp(), 40 | context.failMessage(step), 41 | file: context.file, line: context.line) 42 | try XCTAssertEqual(stderrOutput, actual.utf8stderrOutput().spm_chomp(), 43 | context.failMessage(step), 44 | file: context.file, line: context.line) 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Tests/IncrementalTestFramework/IncrementalTest.swift: -------------------------------------------------------------------------------- 1 | //===------------- PhasedTest.swift - Swift Testing ---------------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | import XCTest 14 | import TSCBasic 15 | 16 | @_spi(Testing) import SwiftDriver 17 | import SwiftOptions 18 | import TestUtilities 19 | 20 | /// Performs a test of the incremental logic and incremental import logic in the driver. 21 | /// Runs the test with incremental imports enabled and then disabled. 22 | /// Eacn test is a series of `Step`s. 23 | public struct IncrementalTest { 24 | /// The `Step`s to run, in order. 25 | let steps: [Step] 26 | 27 | let context: Context 28 | 29 | /// Runs the test. 30 | /// - Parameters: 31 | /// - steps: The `Step` to run. 32 | /// - verbose: Pass `true` to debug a test. Otherwise, omit. 33 | /// - file: Determines where any test failure messages will appear in Xcode 34 | /// - line: Ditto 35 | public static func perform( 36 | _ steps: [Step], 37 | verbose: Bool = false, 38 | file: StaticString = #file, 39 | line: UInt = #line 40 | ) throws { 41 | try perform(steps: steps, 42 | verbose: verbose, 43 | file: file, 44 | line: line) 45 | } 46 | private static func perform(steps: [Step], 47 | verbose: Bool, 48 | file: StaticString, 49 | line: UInt 50 | ) throws { 51 | try withTemporaryDirectory { rootDir in 52 | try localFileSystem.changeCurrentWorkingDirectory(to: rootDir) 53 | for file in try localFileSystem.getDirectoryContents(rootDir) { 54 | try localFileSystem.removeFileTree(rootDir.appending(component: file)) 55 | } 56 | try Self(steps: steps, 57 | context: Context(rootDir: rootDir, 58 | verbose: verbose, 59 | stepIndex: 0, 60 | file: file, 61 | line: line)) 62 | .performSteps() 63 | } 64 | } 65 | 66 | private init(steps: [Step], context: Context) { 67 | self.steps = steps 68 | self.context = context 69 | } 70 | private func performSteps() throws { 71 | for (index, step) in steps.enumerated() { 72 | if context.verbose { 73 | print("\(index)", terminator: " ") 74 | } 75 | try step.perform(stepIndex: index, in: context) 76 | } 77 | if context.verbose { 78 | print("") 79 | } 80 | } 81 | } 82 | 83 | -------------------------------------------------------------------------------- /Tests/IncrementalTestFramework/Source.swift: -------------------------------------------------------------------------------- 1 | //===----------- PhasedSources.swift - Swift Testing --------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | import XCTest 13 | import TSCBasic 14 | 15 | @_spi(Testing) import SwiftDriver 16 | import SwiftOptions 17 | import TestUtilities 18 | 19 | /// A source file to be used in an incremental test. 20 | /// User edits can be simulated by using `AddOn`s. 21 | public struct Source: Hashable, Comparable { 22 | 23 | /// E.g. "main" for "main.swift" 24 | public let name: String 25 | 26 | /// The code in the file, including any `AddOn` markers. 27 | let contents: String 28 | 29 | public init(named name: String, containing contents: String) { 30 | self.name = name 31 | self.contents = contents 32 | } 33 | 34 | /// Produce a Source from a Fixture 35 | /// - Parameters: 36 | /// - named: E.g. "foo" for "foo.swift" 37 | /// - relativePath: The relative path of the subdirectory under 38 | /// `/TestInputs` 39 | /// - fileSystem: The filesystem on which to search. 40 | /// - Returns: A Source with the given name and contents from the file 41 | public init?(named name: String, 42 | at relativePath: RelativePath, 43 | on fileSystem: FileSystem = localFileSystem) throws { 44 | guard let absPath = try Fixture.fixturePath(at: relativePath, 45 | for: "\(name).swift", 46 | on: fileSystem) 47 | else { 48 | return nil 49 | } 50 | let contents = try fileSystem.readFileContents(absPath).cString 51 | self.init(named: name, containing: contents) 52 | } 53 | 54 | public static func < (lhs: Source, rhs: Source) -> Bool { 55 | lhs.name < rhs.name 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /Tests/SwiftDriverTests/Helpers/XCTestExtensions.swift: -------------------------------------------------------------------------------- 1 | //===-------- AssertDiagnostics.swift - Diagnostic Test Assertions --------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | import XCTest 14 | import SwiftDriver 15 | 16 | internal func XCTAssertCommandLineContains(_ commandline: [Job.ArgTemplate], 17 | _ subsequence: Job.ArgTemplate..., 18 | file: StaticString = #file, 19 | line: UInt = #line) { 20 | if !commandline.contains(subsequence: subsequence) { 21 | XCTFail("\(commandline) does not contain \(subsequence)", file: file, line: line) 22 | } 23 | } 24 | 25 | internal func XCTAssertJobInvocationMatches(_ job: Job, 26 | _ subsequence: Job.ArgTemplate..., 27 | file: StaticString = #file, 28 | line: UInt = #line) { 29 | if !job.commandLine.contains(subsequence: subsequence) { 30 | XCTFail("\(job.commandLine) does not contain \(subsequence)", file: file, line: line) 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Tests/SwiftDriverTests/Inputs/IncrementalCompilationInputs.swift: -------------------------------------------------------------------------------- 1 | //===--- IncrementalCompilationInputs.swift - Test Inputs -----------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | 14 | enum Inputs { 15 | static var buildRecord: String { 16 | """ 17 | version: "Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7)" 18 | options: "abbbfbcaf36b93e58efaadd8271ff142" 19 | build_start_time: [1570318779, 32358000] 20 | build_end_time: [1570318779, 32358010] 21 | inputs: 22 | "/Volumes/AS/repos/swift-driver/sandbox/sandbox/sandbox/file2.swift": !dirty [1570318778, 0] 23 | "/Volumes/AS/repos/swift-driver/sandbox/sandbox/sandbox/main.swift": [1570083660, 0] 24 | "/Volumes/gazorp.swift": !private [0,0] 25 | """ 26 | } 27 | static var buildRecordWithoutOptions: String { 28 | """ 29 | version: "Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7)" 30 | build_start_time: [1570318779, 32358000] 31 | build_end_time: [1570318779, 32358010] 32 | inputs: 33 | "/Volumes/AS/repos/swift-driver/sandbox/sandbox/sandbox/file2.swift": !dirty [1570318778, 0] 34 | "/Volumes/AS/repos/swift-driver/sandbox/sandbox/sandbox/main.swift": [1570083660, 0] 35 | "/Volumes/gazorp.swift": !private [0,0] 36 | """ 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Tests/SwiftDriverTests/PredictableRandomNumberGeneratorTests.swift: -------------------------------------------------------------------------------- 1 | //===--------------- PredictableRandomNumberGeneratorTests.swift ----------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | import XCTest 14 | @_spi(Testing) import SwiftDriver 15 | 16 | /// This generator is deterministic and platform independent, so the sequence for each seed should remain constant. 17 | final class PredictableRandomNumberGeneratorTests: XCTestCase { 18 | func testPredictability() { 19 | var generator = PredictableRandomNumberGenerator(seed: 42) 20 | XCTAssertEqual([generator.next(), generator.next(), generator.next(), 21 | generator.next(), generator.next()], 22 | [1546998764402558742, 6990951692964543102, 23 | 12544586762248559009, 17057574109182124193, 24 | 18295552978065317476]) 25 | 26 | var generator2 = PredictableRandomNumberGenerator(seed: 42) 27 | XCTAssertEqual([generator2.next(), generator2.next(), generator2.next(), 28 | generator2.next(), generator2.next()], 29 | [1546998764402558742, 6990951692964543102, 30 | 12544586762248559009, 17057574109182124193, 31 | 18295552978065317476]) 32 | } 33 | 34 | func testUnusualSeeds() { 35 | var generator = PredictableRandomNumberGenerator(seed: 0) 36 | XCTAssertEqual([generator.next(), generator.next(), generator.next(), 37 | generator.next(), generator.next()], 38 | [11091344671253066420, 13793997310169335082, 39 | 1900383378846508768, 7684712102626143532, 40 | 13521403990117723737]) 41 | 42 | var generator2 = PredictableRandomNumberGenerator(seed: 0xFFFFFFFFFFFFFFFF) 43 | XCTAssertEqual([generator2.next(), generator2.next(), generator2.next(), 44 | generator2.next(), generator2.next()], 45 | [10328197420357168392, 14156678507024973869, 46 | 9357971779955476126, 13791585006304312367, 47 | 10463432026814718762]) 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Tests/SwiftOptionsTests/PrefixTrieTests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import SwiftOptions 3 | 4 | final class PrefixTrieTests: XCTestCase { 5 | func testSimpleTrie() { 6 | var trie = PrefixTrie() 7 | 8 | trie["1234"] = nil 9 | XCTAssertEqual(trie.nodeCount, 2) 10 | 11 | trie["a"] = 0 12 | trie["b"] = 1 13 | trie["abcd"] = 2 14 | trie["abc"] = 3 15 | 16 | XCTAssertEqual(trie.nodeCount, 6) 17 | 18 | XCTAssertEqual(trie["a"], 0) 19 | XCTAssertEqual(trie["ab"], 0) 20 | XCTAssertEqual(trie["b"], 1) 21 | XCTAssertEqual(trie["abcd"], 2) 22 | XCTAssertEqual(trie["abcdefg"], 2) 23 | XCTAssertEqual(trie["abc"], 3) 24 | XCTAssertNil(trie["c"]) 25 | } 26 | 27 | func testManyMatchingPrefixes() { 28 | var trie = PrefixTrie() 29 | trie["an"] = 0 30 | trie["ant"] = 1 31 | trie["anteater"] = 2 32 | trie["anteaters"] = 3 33 | 34 | XCTAssertNil(trie["a"]) 35 | XCTAssertEqual(trie["an"], 0) 36 | XCTAssertEqual(trie["ant"], 1) 37 | XCTAssertEqual(trie["ante"], 1) 38 | XCTAssertEqual(trie["antea"], 1) 39 | XCTAssertEqual(trie["anteat"], 1) 40 | XCTAssertEqual(trie["anteate"], 1) 41 | XCTAssertEqual(trie["anteater"], 2) 42 | XCTAssertEqual(trie["anteaters"], 3) 43 | } 44 | 45 | func testUpdating() { 46 | 47 | var trie = PrefixTrie() 48 | trie["garbage"] = 0 49 | XCTAssertEqual(trie["garbage"], 0) 50 | 51 | trie["garbage"] = 1 52 | XCTAssertEqual(trie["garbage"], 1) 53 | 54 | trie["garbage"] = nil 55 | XCTAssertNil(trie["garbage"]) 56 | XCTAssertEqual(trie.nodeCount, 2) 57 | // Removing a node leaves the entry in the trie 58 | 59 | trie["12345"] = 12345 // 5 nodes 60 | trie["12367"] = 12367 // 3 common nodes, 2 new nodes 61 | XCTAssertEqual(trie.nodeCount, 5) 62 | trie["123890"] = 123890 // 3 common nodes, 3 new nodes 63 | XCTAssertEqual(trie.nodeCount, 6) 64 | trie["123890"] = nil 65 | XCTAssertEqual(trie.nodeCount, 6) 66 | XCTAssertNil(trie["123890"]) 67 | trie["abc"] = 979899 // 1 new node, 0 common nodes 68 | XCTAssertEqual(trie.nodeCount, 7) 69 | // existing prefix that cannot be deleted since 70 | // 12345 & 12367 exist 71 | trie["123"] = nil 72 | XCTAssertEqual(trie.nodeCount, 7) 73 | 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /Tests/TestUtilities/Fixture.swift: -------------------------------------------------------------------------------- 1 | //===------------ Fixture.swift - Driver Testing Extensions --------------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2020 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | import TSCBasic 14 | 15 | /// Contains helpers for retrieving paths to fixtures under the 16 | /// repo-local `TestInputs` directory. 17 | public enum Fixture { 18 | /// Form a path to a file residing in the test fixtures directory under the 19 | /// root of this package. 20 | /// - Parameters: 21 | /// - file: The name of the fixture file to search for. 22 | /// - relativePath: The relative path of the subdirectory under 23 | /// `/TestInputs` 24 | /// - fileSystem: The filesystem on which to search. 25 | /// - Returns: A path to the fixture file if the resulting path exists on the 26 | /// given file system. Else, returns `nil`. 27 | public static func fixturePath( 28 | at relativePath: RelativePath, 29 | for file: String, 30 | on fileSystem: FileSystem = localFileSystem 31 | ) throws -> AbsolutePath? { 32 | let packageRootPath: AbsolutePath = 33 | try AbsolutePath(validating: #file).parentDirectory.parentDirectory.parentDirectory 34 | let fixturePath = 35 | try AbsolutePath(validating: relativePath.pathString, 36 | relativeTo: packageRootPath.appending(component: "TestInputs")) 37 | .appending(component: file) 38 | 39 | // Check that the fixture is really there. 40 | guard fileSystem.exists(fixturePath) else { 41 | return nil 42 | } 43 | 44 | return fixturePath 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Tests/TestUtilities/OutputFileMapCreator.swift: -------------------------------------------------------------------------------- 1 | //===--------------- OutputFileMapCreator.swift - Swift Testing -----------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | import TSCBasic 14 | import struct Foundation.Data 15 | import class Foundation.JSONEncoder 16 | 17 | public struct OutputFileMapCreator { 18 | private let module: String 19 | private let inputPaths: [AbsolutePath] 20 | private let derivedData: AbsolutePath 21 | // The main entry isn't required for some WMO builds 22 | private let excludeMainEntry: Bool 23 | 24 | private init(module: String, inputPaths: [AbsolutePath], derivedData: AbsolutePath, excludeMainEntry: Bool) { 25 | self.module = module 26 | self.inputPaths = inputPaths 27 | self.derivedData = derivedData 28 | self.excludeMainEntry = excludeMainEntry 29 | } 30 | 31 | public static func write(module: String, 32 | inputPaths: [AbsolutePath], 33 | derivedData: AbsolutePath, 34 | to dst: AbsolutePath, 35 | excludeMainEntry: Bool = false) { 36 | let creator = Self(module: module, inputPaths: inputPaths, derivedData: derivedData, excludeMainEntry: excludeMainEntry) 37 | try! localFileSystem.writeIfChanged(path: dst, bytes: ByteString(creator.generateData())) 38 | } 39 | 40 | private func generateDict() -> [String: [String: String]] { 41 | let master = ["swift-dependencies": derivedData.appending(component: "\(module)-master.swiftdeps").nativePathString(escaped: false)] 42 | let mainEntryDict = self.excludeMainEntry ? [:] : ["": master] 43 | func baseNameEntry(_ s: AbsolutePath) -> [String: String] { 44 | [ 45 | "dependencies": ".d", 46 | "diagnostics": ".dia", 47 | "llvm-bc": ".bc", 48 | "object": ".o", 49 | "swift-dependencies": ".swiftdeps", 50 | "swiftmodule": "-partial.swiftmodule" 51 | ] 52 | .mapValues {"\(derivedData.appending(component: s.basenameWithoutExt))\($0)"} 53 | } 54 | 55 | return Dictionary(uniqueKeysWithValues: 56 | inputPaths.map { ("\($0)", baseNameEntry($0)) } 57 | ) 58 | .merging(mainEntryDict) {_, _ in fatalError()} 59 | } 60 | 61 | private func generateData() -> Data { 62 | let d: [String: [String: String]] = generateDict() 63 | let enc = JSONEncoder() 64 | return try! enc.encode(d) 65 | } 66 | } 67 | 68 | -------------------------------------------------------------------------------- /Tests/TestUtilities/PathExtensions.swift: -------------------------------------------------------------------------------- 1 | //===---------- PathExtensions.swift - Driver Testing Extensions ----------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2020 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | import TSCBasic 14 | import SwiftDriver 15 | import struct Foundation.URL 16 | 17 | extension AbsolutePath { 18 | public func nativePathString(escaped: Bool) -> String { 19 | return URL(fileURLWithPath: self.pathString).withUnsafeFileSystemRepresentation { 20 | let repr: String = String(cString: $0!) 21 | if escaped { return repr.replacingOccurrences(of: "\\", with: "\\\\") } 22 | return repr 23 | } 24 | } 25 | } 26 | 27 | extension VirtualPath { 28 | public func nativePathString(escaped: Bool) -> String { 29 | return URL(fileURLWithPath: self.description).withUnsafeFileSystemRepresentation { 30 | let repr: String = String(cString: $0!) 31 | if escaped { return repr.replacingOccurrences(of: "\\", with: "\\\\") } 32 | return repr 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Tests/TestUtilities/TemporaryFileMatching.swift: -------------------------------------------------------------------------------- 1 | //===-------- TemporaryFileMatch.swift - Driver Testing Extensions --------===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2020 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | import TSCBasic 14 | import SwiftDriver 15 | 16 | 17 | public func matchTemporary(_ path: VirtualPath, basename: String, fileExtension: String?) -> Bool { 18 | let relativePath: RelativePath 19 | switch path { 20 | case .temporary(let tempPath): 21 | relativePath = tempPath 22 | case .temporaryWithKnownContents(let tempPath, _): 23 | relativePath = tempPath 24 | default: 25 | return false 26 | } 27 | return relativePath.basenameWithoutExt.hasPrefix(basename) && 28 | fileExtension == relativePath.extension 29 | } 30 | 31 | public func matchTemporary(_ path: VirtualPath, _ filename: String) -> Bool { 32 | let components = filename.components(separatedBy: ".") 33 | if components.count == 1 { 34 | return matchTemporary(path, basename: filename, fileExtension: nil) 35 | } else if components.count == 2 { 36 | return matchTemporary(path, basename: components[0], fileExtension: components[1]) 37 | } else { 38 | let basename = components[0 ..< components.count - 1].joined() 39 | return matchTemporary(path, basename: basename, fileExtension: components.last) 40 | } 41 | } 42 | 43 | public func commandContainsFlagTemporaryPathSequence(_ cmd: [Job.ArgTemplate], 44 | flag: Job.ArgTemplate, 45 | filename: String) 46 | -> Bool { 47 | for (index, element) in cmd.enumerated() { 48 | if element == flag, 49 | (index + 1) < cmd.count { 50 | guard case .path(let relativePath) = cmd[index + 1] else { 51 | continue 52 | } 53 | if matchTemporary(relativePath, filename) { 54 | return true 55 | } 56 | } 57 | } 58 | return false 59 | } 60 | 61 | public func commandContainsTemporaryPath(_ cmd: [Job.ArgTemplate], 62 | _ filename: String) 63 | -> Bool { 64 | return cmd.contains { 65 | guard case .path(let path) = $0 else { return false } 66 | return matchTemporary(path, filename) 67 | } 68 | } 69 | 70 | public func commandContainsTemporaryResponsePath(_ cmd: [Job.ArgTemplate], 71 | _ filename: String) 72 | -> Bool { 73 | return cmd.contains { 74 | guard case .responseFilePath(let path) = $0 else { return false } 75 | return matchTemporary(path, filename) 76 | } 77 | } 78 | 79 | -------------------------------------------------------------------------------- /Tests/ToolingTestShim/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # This source file is part of the Swift.org open source project 2 | # 3 | # Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors 4 | # Licensed under Apache License v2.0 with Runtime Library Exception 5 | # 6 | # See http://swift.org/LICENSE.txt for license information 7 | # See http://swift.org/CONTRIBUTORS.txt for Swift project authors 8 | 9 | add_library(CToolingTestShim STATIC 10 | CToolingTestShimImpl.c) 11 | -------------------------------------------------------------------------------- /Tests/ToolingTestShim/CToolingTestShimImpl.c: -------------------------------------------------------------------------------- 1 | #include "include/tooling_shim.h" 2 | 3 | bool swift_getSingleFrontendInvocationFromDriverArgumentsV3(const char *, int, const char**, bool(int, const char**), 4 | void(swiftdriver_tooling_diagnostic_kind, const char*), bool, bool); 5 | bool getSingleFrontendInvocationFromDriverArgumentsTest(const char *driverPath, 6 | int argListCount, 7 | const char** argList, 8 | bool action(int argc, const char** argv), 9 | void diagnosticCallback(swiftdriver_tooling_diagnostic_kind diagnosticKind, 10 | const char* message), 11 | bool forceNoOutputs) { 12 | return swift_getSingleFrontendInvocationFromDriverArgumentsV3(driverPath, argListCount, argList, 13 | action, diagnosticCallback, false, forceNoOutputs); 14 | } 15 | -------------------------------------------------------------------------------- /Tests/ToolingTestShim/include/module.modulemap: -------------------------------------------------------------------------------- 1 | module CToolingTestShim { 2 | header "tooling_shim.h" 3 | export * 4 | } 5 | -------------------------------------------------------------------------------- /Tests/ToolingTestShim/include/tooling_shim.h: -------------------------------------------------------------------------------- 1 | //=== tooling_shim.h - C API Shim for Swift Driver Tooling Testing *- C -*-===// 2 | // 3 | // This source file is part of the Swift.org open source project 4 | // 5 | // Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See https://swift.org/LICENSE.txt for license information 9 | // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===----------------------------------------------------------------------===// 12 | 13 | #ifndef SWIFT_C_TOOLING_TEST_SHIM_H 14 | #define SWIFT_C_TOOLING_TEST_SHIM_H 15 | 16 | #if __cplusplus 17 | extern "C" { 18 | #endif 19 | 20 | #include 21 | #include 22 | 23 | typedef enum { 24 | SWIFTDRIVER_TOOLING_DIAGNOSTIC_ERROR = 0, 25 | SWIFTDRIVER_TOOLING_DIAGNOSTIC_WARNING = 1, 26 | SWIFTDRIVER_TOOLING_DIAGNOSTIC_REMARK = 2, 27 | SWIFTDRIVER_TOOLING_DIAGNOSTIC_NOTE = 3 28 | } swiftdriver_tooling_diagnostic_kind; 29 | 30 | // A shim that will call out to the Swift-written C API of swift_getSingleFrontendInvocationFromDriverArgumentsV2 31 | bool getSingleFrontendInvocationFromDriverArgumentsTest(const char *, int, const char**, bool(int, const char**), 32 | void(swiftdriver_tooling_diagnostic_kind, const char*), bool); 33 | 34 | #if __cplusplus 35 | } // extern "C" 36 | #endif // __cplusplus 37 | 38 | #endif // SWIFT_C_TOOLING_TEST_SHIM_H 39 | -------------------------------------------------------------------------------- /cmake/modules/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(SWIFTDRIVER_EXPORTS_FILE ${CMAKE_CURRENT_BINARY_DIR}/SwiftDriverExports.cmake) 2 | 3 | configure_file(SwiftDriverConfig.cmake.in 4 | ${CMAKE_CURRENT_BINARY_DIR}/SwiftDriverConfig.cmake) 5 | 6 | get_property(SWIFTDRIVER_EXPORTS GLOBAL PROPERTY SWIFTDRIVER_EXPORTS) 7 | export(TARGETS ${SWIFTDRIVER_EXPORTS} 8 | FILE ${SWIFTDRIVER_EXPORTS_FILE}) 9 | -------------------------------------------------------------------------------- /cmake/modules/FindLLBuild.cmake: -------------------------------------------------------------------------------- 1 | # This source file is part of the Swift.org open source project 2 | # 3 | # Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors 4 | # Licensed under Apache License v2.0 with Runtime Library Exception 5 | # 6 | # See http://swift.org/LICENSE.txt for license information 7 | # See http://swift.org/CONTRIBUTORS.txt for Swift project authors 8 | 9 | if(TARGET llbuildSwift) 10 | return() 11 | endif() 12 | 13 | include(CMakeFindFrameworks) 14 | cmake_find_frameworks(llbuild) 15 | if(llbuild_FRAMEWORKS) 16 | if(NOT TARGET llbuildSwift) 17 | add_library(llbuildSwift UNKNOWN IMPORTED) 18 | set_target_properties(llbuildSwift PROPERTIES 19 | FRAMEWORK TRUE 20 | INTERFACE_COMPILE_OPTIONS -F${llbuild_FRAMEWORKS} 21 | IMPORTED_LOCATION ${llbuild_FRAMEWORKS}/llbuild.framework/llbuild) 22 | endif() 23 | 24 | include(FindPackageHandleStandardArgs) 25 | find_package_handle_standard_args(LLBuild 26 | REQUIRED_VARS llbuild_FRAMEWORKS) 27 | else() 28 | find_library(libllbuild_LIBRARIES libllbuild) 29 | find_file(libllbuild_INCLUDE_DIRS llbuild/llbuild.h) 30 | 31 | find_library(llbuildSwift_LIBRARIES llbuildSwift) 32 | find_file(llbuildSwift_INCLUDE_DIRS llbuildSwift.swiftmodule) 33 | 34 | include(FindPackageHandleStandardArgs) 35 | find_package_handle_standard_args(LLBuild REQUIRED_VARS 36 | libllbuild_LIBRARIES 37 | libllbuild_INCLUDE_DIRS 38 | llbuildSwift_LIBRARIES 39 | llbuildSwift_INCLUDE_DIRS) 40 | 41 | if(NOT TARGET libllbuild) 42 | add_library(libllbuild UNKNOWN IMPORTED) 43 | get_filename_component(libllbuild_INCLUDE_DIRS 44 | ${libllbuild_INCLUDE_DIRS} DIRECTORY) 45 | set_target_properties(libllbuild PROPERTIES 46 | INTERFACE_INCLUDE_DIRECTORIES ${libllbuild_INCLUDE_DIRS} 47 | IMPORTED_LOCATION ${libllbuild_LIBRARIES}) 48 | endif() 49 | if(NOT TARGET llbuildSwift) 50 | add_library(llbuildSwift UNKNOWN IMPORTED) 51 | get_filename_component(llbuildSwift_INCLUDE_DIRS 52 | ${llbuildSwift_INCLUDE_DIRS} DIRECTORY) 53 | set_target_properties(llbuildSwift PROPERTIES 54 | INTERFACE_LINK_LIBRARIES libllbuild 55 | INTERFACE_INCLUDE_DIRECTORIES ${llbuildSwift_INCLUDE_DIRS} 56 | IMPORTED_LOCATION ${llbuildSwift_LIBRARIES}) 57 | endif() 58 | endif() 59 | -------------------------------------------------------------------------------- /cmake/modules/SwiftDriverConfig.cmake.in: -------------------------------------------------------------------------------- 1 | if(NOT TARGET SwiftDriver) 2 | include(@SWIFTDRIVER_EXPORTS_FILE@) 3 | endif() 4 | --------------------------------------------------------------------------------