From 869947da2df661a14dd963a6e3676d96288c5c1e Mon Sep 17 00:00:00 2001 From: Owen Voorhees Date: Sat, 5 Sep 2020 22:33:13 -0700 Subject: [PATCH] Add missing flags to compile jobs Previously, -track-system-dependencies and -cross-module-optimization weren't being forwarded to the driver --- Sources/SwiftDriver/Jobs/CompileJob.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/SwiftDriver/Jobs/CompileJob.swift b/Sources/SwiftDriver/Jobs/CompileJob.swift index 2c692a4a4..64ac1a335 100644 --- a/Sources/SwiftDriver/Jobs/CompileJob.swift +++ b/Sources/SwiftDriver/Jobs/CompileJob.swift @@ -204,6 +204,8 @@ extension Driver { commandLine.appendFlag(.debugInfoStoreInvocation) } + try commandLine.appendLast(.trackSystemDependencies, from: &parsedOptions) + try commandLine.appendLast(.CrossModuleOptimization, from: &parsedOptions) try commandLine.appendLast(.disableAutolinkingRuntimeCompatibility, from: &parsedOptions) try commandLine.appendLast(.runtimeCompatibilityVersion, from: &parsedOptions) try commandLine.appendLast(.disableAutolinkingRuntimeCompatibilityDynamicReplacements, from: &parsedOptions)