forked from OSchip/llvm-project
Driver: Support -Oz as an alias for -Os.
llvm-svn: 119003
This commit is contained in:
parent
641baf1646
commit
fc8aefb0ba
|
@ -1139,6 +1139,10 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
else if (A->getOption().matches(options::OPT_O) &&
|
||||
A->getValue(Args)[0] == '\0')
|
||||
CmdArgs.push_back("-O2");
|
||||
else if (A->getOption().matches(options::OPT_O) &&
|
||||
A->getValue(Args)[0] == 'z' &&
|
||||
A->getValue(Args)[1] == '\0')
|
||||
CmdArgs.push_back("-Os");
|
||||
else
|
||||
A->render(Args, CmdArgs);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue