Skip to content

Commit ed1e13b

Browse files
committed
toolchain logging
1 parent 62bd4c6 commit ed1e13b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/SWBCore/SpecImplementations/Tools/LinkerTools.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,10 @@ public final class LdLinkerSpec : GenericLinkerSpec, SpecIdentifierType, @unchec
590590
// Select the driver to use based on the input file types, replacing the value computed by commandLineFromTemplate().
591591
let usedCXX = usedTools.values.contains(where: { $0.contains(where: { $0.languageDialect?.isPlusPlus ?? false }) })
592592
commandLine[0] = resolveExecutablePath(cbc, computeLinkerPath(cbc, usedCXX: usedCXX)).str
593+
delegate.note("resolved linker as \(commandLine[0])")
594+
for toolchain in cbc.producer.toolchains {
595+
delegate.note("search paths for toolchain \(toolchain.identifier) were: \(toolchain.executableSearchPaths.paths)")
596+
}
593597

594598
let entitlementsSection = cbc.scope.evaluate(BuiltinMacros.LD_ENTITLEMENTS_SECTION)
595599
if !entitlementsSection.isEmpty {

0 commit comments

Comments
 (0)