mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-19 11:41:53 +00:00
llvm-cov: Try to appease a bot
The clang-hexagon elf bot was complaining that "Option 'color' registered more than once!": http://lab.llvm.org:8011/builders/clang-hexagon-elf/builds/24425 I don't understand why this error is happening, and I don't see it on any other bots or on my own machine, so I'm kind of grasping at straws. Try using an unscoped enum and specifying a cl::init to see if they help. llvm-svn: 232698
This commit is contained in:
parent
da17bb1b24
commit
9ae019b470
@ -294,9 +294,9 @@ int CodeCoverageTool::run(Command Cmd, int argc, const char **argv) {
|
||||
"greater than the given threshold"),
|
||||
cl::cat(FilteringCategory));
|
||||
|
||||
enum class Colors { Auto, Always, Never };
|
||||
enum Colors { Auto, Always, Never };
|
||||
cl::opt<Colors> Color(
|
||||
"color", cl::desc("Configure color output:"),
|
||||
"color", cl::desc("Configure color output:"), cl::init(Colors::Auto),
|
||||
cl::values(clEnumValN(Colors::Auto, "auto",
|
||||
"Enable color if stdout seems to support it"),
|
||||
clEnumValN(Colors::Always, "always", "Enable color"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user