From b6288528d633a3e29df57f669dff47711355af57 Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Wed, 16 Aug 2023 01:32:15 -0400 Subject: [PATCH 1/2] Add ld-path driver option --- include/swift/Option/Options.td | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/swift/Option/Options.td b/include/swift/Option/Options.td index 434028014213e..6d9996afcff67 100644 --- a/include/swift/Option/Options.td +++ b/include/swift/Option/Options.td @@ -890,7 +890,11 @@ def no_static_executable : Flag<["-"], "no-static-executable">, def use_ld : Joined<["-"], "use-ld=">, Flags<[DoesNotAffectIncrementalBuild]>, - HelpText<"Specifies the linker to be used">; + HelpText<"Specifies the flavor of the linker to be used">; + +def ld_path : Joined<["--"], "ld-path=">, + Flags<[DoesNotAffectIncrementalBuild, ArgumentIsPath]>, + HelpText<"Specifies the path to the linker to be used">; def Xlinker : Separate<["-"], "Xlinker">, Flags<[DoesNotAffectIncrementalBuild]>, From 49a38f755fda044f40919ed12eaff26bf5167782 Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Wed, 16 Aug 2023 12:22:16 -0400 Subject: [PATCH 2/2] Mark --ld-path as HelpHidden --- include/swift/Option/Options.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/swift/Option/Options.td b/include/swift/Option/Options.td index 6d9996afcff67..9e373211ba489 100644 --- a/include/swift/Option/Options.td +++ b/include/swift/Option/Options.td @@ -893,7 +893,7 @@ def use_ld : Joined<["-"], "use-ld=">, HelpText<"Specifies the flavor of the linker to be used">; def ld_path : Joined<["--"], "ld-path=">, - Flags<[DoesNotAffectIncrementalBuild, ArgumentIsPath]>, + Flags<[HelpHidden, DoesNotAffectIncrementalBuild, ArgumentIsPath]>, HelpText<"Specifies the path to the linker to be used">; def Xlinker : Separate<["-"], "Xlinker">,