You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Explicit Module Builds] Simplify '-explain-module-dependency' behavior and introduce '-explain-module-dependency-detailed'
The former will now simply print the first discovered path to the specified dependency module. While the latter will preserve prior behavior of finding *all possible paths* to the specified module
Copy file name to clipboardExpand all lines: Sources/SwiftOptions/Options.swift
+3-1
Original file line number
Diff line number
Diff line change
@@ -499,7 +499,8 @@ extension Option {
499
499
publicstaticletexperimentalSpiImports:Option=Option("-experimental-spi-imports",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable experimental support for SPI imports")
500
500
publicstaticletexperimentalSpiOnlyImports:Option=Option("-experimental-spi-only-imports",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable use of @_spiOnly imports")
501
501
publicstaticletenableExperimentalSwiftBasedClosureSpecialization:Option=Option("-experimental-swift-based-closure-specialization",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Use the experimental Swift based closure-specialization optimization pass instead of the existing C++ one")
502
-
publicstaticletexplainModuleDependency:Option=Option("-explain-module-dependency",.separate, attributes:[], helpText:"Emit remark/notes describing why compilation may depend on a module with a given name.")
502
+
publicstaticletexplainModuleDependencyDetailed:Option=Option("-explain-module-dependency-detailed",.separate, attributes:[], helpText:"Emit remarks describing every possible dependency path that explains why compilation may depend on a module with a given name.")
503
+
publicstaticletexplainModuleDependency:Option=Option("-explain-module-dependency",.separate, attributes:[], helpText:"Emit remark describing why compilation may depend on a module with a given name.")
503
504
publicstaticletexplicitAutoLinking:Option=Option("-explicit-auto-linking",.flag, attributes:[], helpText:"Instead of linker-load directives, have the driver specify all link dependencies on the linker invocation. Requires '-explicit-module-build'.")
504
505
publicstaticletexplicitDependencyGraphFormat:Option=Option("-explicit-dependency-graph-format=",.joined, attributes:[.helpHidden,.doesNotAffectIncrementalBuild], helpText:"Specify the explicit dependency graph output format to either 'json' or 'dot'")
505
506
publicstaticletexplicitInterfaceModuleBuild:Option=Option("-explicit-interface-module-build",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Use the specified command-line to build the module from interface, instead of flags specified in the interface")
0 commit comments