mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 15:40:55 +03:00
Removed useless -quiet switch.
This commit is contained in:
parent
243083b88c
commit
e7bbacadb7
3 changed files with 4 additions and 20 deletions
|
@ -27,15 +27,6 @@
|
|||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Is this useful?
|
||||
llvm::cl::opt<bool> quiet("quiet",
|
||||
llvm::cl::desc("Suppress output of link command (unless -v is also passed)"),
|
||||
llvm::cl::Hidden,
|
||||
llvm::cl::ZeroOrMore,
|
||||
llvm::cl::init(true));
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
static bool endsWith(const std::string &str, const std::string &end)
|
||||
{
|
||||
return (str.length() >= end.length() && std::equal(end.rbegin(), end.rend(), str.rbegin()));
|
||||
|
@ -210,7 +201,7 @@ static int linkObjToBinaryGcc(bool sharedLib)
|
|||
logstr << "\n"; // FIXME where's flush ?
|
||||
|
||||
// try to call linker
|
||||
return executeToolAndWait(gcc, args, !quiet || global.params.verbose);
|
||||
return executeToolAndWait(gcc, args, global.params.verbose);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -316,7 +307,7 @@ static int linkObjToBinaryWin(bool sharedLib)
|
|||
logstr << "\n"; // FIXME where's flush ?
|
||||
|
||||
// try to call linker
|
||||
return executeToolAndWait(tool, args, !quiet || global.params.verbose);
|
||||
return executeToolAndWait(tool, args, global.params.verbose);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -393,7 +384,7 @@ void createStaticLibrary()
|
|||
CreateDirectoryOnDisk(libName);
|
||||
|
||||
// try to call archiver
|
||||
executeToolAndWait(tool, args, !quiet || global.params.verbose);
|
||||
executeToolAndWait(tool, args, global.params.verbose);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -417,7 +408,7 @@ int runExecutable()
|
|||
assert(gExePath.isValid());
|
||||
|
||||
// Run executable
|
||||
int status = executeToolAndWait(gExePath, opts::runargs, !quiet || global.params.verbose);
|
||||
int status = executeToolAndWait(gExePath, opts::runargs, global.params.verbose);
|
||||
if (status < 0)
|
||||
{
|
||||
#if defined(_MSC_VER)
|
||||
|
|
|
@ -15,10 +15,6 @@
|
|||
#ifndef LDC_DRIVER_LINKER_H
|
||||
#define LDC_DRIVER_LINKER_H
|
||||
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
|
||||
extern llvm::cl::opt<bool> quiet;
|
||||
|
||||
/**
|
||||
* Link an executable only from object files.
|
||||
* @param argv0 the argv[0] value as passed to main
|
||||
|
|
|
@ -387,9 +387,6 @@ int main(int argc, char** argv)
|
|||
}
|
||||
}
|
||||
|
||||
if (global.params.run)
|
||||
quiet = 1;
|
||||
|
||||
if (global.params.useUnitTests)
|
||||
global.params.useAssert = 1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue