Skip to content

Commit

Permalink
Allow suppress with ts_lib attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
ribrdb committed Jun 21, 2018
1 parent 2fb4518 commit f54ee24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions closure/compiler/closure_js_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ def _closure_js_library(ctx):
fail("Either 'srcs', 'exports', or 'ts_lib' must be specified")
if not ctx.files.srcs and ctx.attr.deps:
fail("'srcs' must be set when using 'deps', otherwise consider 'exports'")
if not ctx.files.srcs and (ctx.attr.suppress or ctx.attr.lenient):
fail("'srcs' must be set when using 'suppress' or 'lenient'")
if not (ctx.files.srcs or ctx.attr.ts_lib) and (ctx.attr.suppress or ctx.attr.lenient):
fail("Either 'srcs' or 'ts_lib' must be set when using 'suppress' or 'lenient'")
if ctx.attr.language:
print("The closure_js_library 'language' attribute is now removed and " +
"is always set to " + JS_LANGUAGE_IN)
Expand Down

0 comments on commit f54ee24

Please sign in to comment.