Skip to content

-Werror and -extra_checks flags don't work as documented #140

@ekuefler

Description

@ekuefler

These flags are described at http://bazel.io/docs/bazel-user-manual.html#-Werror, but all of my attempts to pass them on the command line lead to errors:

$ bazel build ... -Werror:+all
Invalid options syntax: -Werror:+all
$ bazel build ... -Werror:all
Invalid options syntax: -Werror:all
$ bazel build ... -Werror:+all,-deprecation,-unchecked
Invalid options syntax: -Werror:+all,-deprecation,-unchecked
$ bazel build ... --javacopt="-Werror:+all,-deprecation,-unchecked"
INFO: Found 262 targets...
INFO: From Building src/main/java/com/ekuefler/libinterpolators.jar (3 files):
blaze javac: invalid flag: -Werror:+all,-deprecation,-unchecked
Usage: blaze javac <options> <source files>
use -help for a list of possible options
$ bazel build ... -extra_checks
Invalid options syntax: -extra_checks
$ bazel build ... -extra_checks:on
Invalid options syntax: -extra_checks:on
$ bazel build ... --extra_checks:on
Unrecognized option: --extra_checks:on

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions