зеркало из https://github.com/microsoft/clang-1.git
Tweak darwin::Link::AddLinkArgs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81021 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
78dbd580a0
Коммит
d82f8fa537
|
@ -324,6 +324,7 @@ OPTION("-Z", Z_Joined, Joined, INVALID, INVALID, "", 0, 0, 0)
|
|||
OPTION("-all_load", all__load, Flag, INVALID, INVALID, "", 0, 0, 0)
|
||||
OPTION("-allowable_client", allowable__client, Separate, INVALID, INVALID, "", 0, 0, 0)
|
||||
OPTION("-ansi", ansi, Flag, a_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-arch_errors_fatal", arch__errors__fatal, Flag, INVALID, INVALID, "", 0, 0, 0)
|
||||
OPTION("-arch", arch, Separate, INVALID, INVALID, "d", 0, 0, 0)
|
||||
OPTION("-a", a, Joined, a_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-bind_at_load", bind__at__load, Flag, INVALID, INVALID, "", 0, 0, 0)
|
||||
|
|
|
@ -1519,6 +1519,8 @@ void darwin::Link::AddLinkArgs(const ArgList &Args,
|
|||
Args.AddLastArg(CmdArgs, options::OPT_all__load);
|
||||
Args.AddAllArgs(CmdArgs, options::OPT_allowable__client);
|
||||
Args.AddLastArg(CmdArgs, options::OPT_bind__at__load);
|
||||
if (getDarwinToolChain().isIPhone())
|
||||
Args.AddLastArg(CmdArgs, options::OPT_arch__errors__fatal);
|
||||
Args.AddLastArg(CmdArgs, options::OPT_dead__strip);
|
||||
Args.AddLastArg(CmdArgs, options::OPT_no__dead__strip__inits__and__terms);
|
||||
Args.AddAllArgs(CmdArgs, options::OPT_dylib__file);
|
||||
|
@ -1572,14 +1574,22 @@ void darwin::Link::AddLinkArgs(const ArgList &Args,
|
|||
Args.AddAllArgs(CmdArgs, options::OPT_seg__addr__table__filename);
|
||||
Args.AddAllArgs(CmdArgs, options::OPT_sub__library);
|
||||
Args.AddAllArgs(CmdArgs, options::OPT_sub__umbrella);
|
||||
|
||||
Args.AddAllArgsTranslated(CmdArgs, options::OPT_isysroot, "-syslibroot");
|
||||
if (getDarwinToolChain().isIPhone()) {
|
||||
if (!Args.hasArg(options::OPT_isysroot)) {
|
||||
CmdArgs.push_back("-syslibroot");
|
||||
CmdArgs.push_back("/Developer/SDKs/Extra");
|
||||
}
|
||||
}
|
||||
|
||||
Args.AddLastArg(CmdArgs, options::OPT_twolevel__namespace);
|
||||
Args.AddLastArg(CmdArgs, options::OPT_twolevel__namespace__hints);
|
||||
Args.AddAllArgs(CmdArgs, options::OPT_umbrella);
|
||||
Args.AddAllArgs(CmdArgs, options::OPT_undefined);
|
||||
Args.AddAllArgs(CmdArgs, options::OPT_unexported__symbols__list);
|
||||
Args.AddAllArgs(CmdArgs, options::OPT_weak__reference__mismatches);
|
||||
|
||||
Args.AddAllArgs(CmdArgs, options::OPT_weak__reference__mismatches);
|
||||
if (!Args.hasArg(options::OPT_weak__reference__mismatches)) {
|
||||
CmdArgs.push_back("-weak_reference_mismatches");
|
||||
CmdArgs.push_back("non-weak");
|
||||
|
|
Загрузка…
Ссылка в новой задаче