mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 00:20:40 +03:00
Merge pull request #315 from klickverbot/o-o3
Make '-O' equivalent to '-O3'.
This commit is contained in:
commit
b889c20dca
2 changed files with 2 additions and 2 deletions
|
@ -807,7 +807,7 @@ void buildCommandLine(std::vector<const char*>& r, const Params& p)
|
|||
if (p.logTlsUse) warning("-vtls not yet supported by LDC.");
|
||||
if (p.warnings == Warnings::asErrors) r.push_back("-w");
|
||||
else if (p.warnings == Warnings::informational) r.push_back("-wi");
|
||||
if (p.optimize) r.push_back("-O2");
|
||||
if (p.optimize) r.push_back("-O3");
|
||||
if (p.noObj) r.push_back("-o-");
|
||||
if (p.objDir) r.push_back(concat("-od=", p.objDir));
|
||||
if (p.objName) r.push_back(concat("-of=", p.objName));
|
||||
|
|
|
@ -47,7 +47,7 @@ static cl::opt<signed char> optimizeLevel(
|
|||
cl::desc("Setting the optimization level:"),
|
||||
cl::ZeroOrMore,
|
||||
cl::values(
|
||||
clEnumValN(2, "O", "Equivalent to -O2"),
|
||||
clEnumValN(3, "O", "Equivalent to -O3"),
|
||||
clEnumValN(0, "O0", "No optimizations (default)"),
|
||||
clEnumValN(1, "O1", "Simple optimizations"),
|
||||
clEnumValN(2, "O2", "Good optimizations"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue