-
Notifications
You must be signed in to change notification settings - Fork 4.4k
-Werror and -extra_checks flags don't work as documented #140
Copy link
Copy link
Closed
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels