Skip to content

Commit ab5588d

Browse files
committed
Reorder Xlinker and linker option group
1 parent 1f4e643 commit ab5588d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/Driver/DarwinToolChains.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,9 @@ toolchains::Darwin::constructInvocation(const LinkJobAction &job,
475475

476476
Arguments.push_back("-no_objc_category_merging");
477477

478-
// These custom arguments should be right before the object file at the end
479-
context.Args.AddAllArgValues(Arguments, options::OPT_Xlinker);
478+
// These custom arguments should be right before the object file at the end.
480479
context.Args.AddAllArgs(Arguments, options::OPT_linker_option_Group);
480+
context.Args.AddAllArgValues(Arguments, options::OPT_Xlinker);
481481

482482
// This should be the last option, for convenience in checking output.
483483
Arguments.push_back("-o");

lib/Driver/UnixToolChains.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ toolchains::GenericUnix::constructInvocation(const LinkJobAction &job,
322322
Arguments.push_back("-v");
323323
}
324324

325-
// These custom arguments should be right before the object file at the end
326-
context.Args.AddAllArgs(Arguments, options::OPT_Xlinker);
325+
// These custom arguments should be right before the object file at the end.
327326
context.Args.AddAllArgs(Arguments, options::OPT_linker_option_Group);
327+
context.Args.AddAllArgs(Arguments, options::OPT_Xlinker);
328328

329329
// This should be the last option, for convenience in checking output.
330330
Arguments.push_back("-o");

0 commit comments

Comments
 (0)