Skip to content

Commit a7ff6e9

Browse files
authored
Merge pull request #67956 from kabiroberai/kabir/ld-path-option
This PR defines an `--ld-path` option for the Swift Driver, which is forwarded to the Clang linker-driver option with the same name. This change is required to support the `toolset.linker.path` option in [SE-0387](https://github.com/apple/swift-evolution/blob/main/proposals/0387-cross-compilation-destinations.md). ## See Also Downstream: swiftlang/swift-driver#1416, swiftlang/swift-package-manager#6719.
2 parents e9e25cc + 49a38f7 commit a7ff6e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/swift/Option/Options.td

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,11 @@ def no_static_executable : Flag<["-"], "no-static-executable">,
894894

895895
def use_ld : Joined<["-"], "use-ld=">,
896896
Flags<[DoesNotAffectIncrementalBuild]>,
897-
HelpText<"Specifies the linker to be used">;
897+
HelpText<"Specifies the flavor of the linker to be used">;
898+
899+
def ld_path : Joined<["--"], "ld-path=">,
900+
Flags<[HelpHidden, DoesNotAffectIncrementalBuild, ArgumentIsPath]>,
901+
HelpText<"Specifies the path to the linker to be used">;
898902

899903
def Xlinker : Separate<["-"], "Xlinker">,
900904
Flags<[DoesNotAffectIncrementalBuild]>,

0 commit comments

Comments
 (0)