Merge branch 'master' into defcleanup

pull/13171/head
Joshua Haberman 6 years ago
commit 810c45a224
  1. 9
      build_defs.bzl
  2. 2
      kokoro/ubuntu/build.sh

@ -182,13 +182,14 @@ _file_list_aspect = aspect(
)
def _upb_amalgamation(ctx):
inputs = []
srcs = []
hdrs = []
for lib in ctx.attr.libs:
srcs += lib[SrcList].srcs
hdrs += lib[SrcList].hdrs
inputs += lib[SrcList].srcs
inputs += lib[SrcList].hdrs
srcs += [src for src in lib[SrcList].srcs if src.path.endswith("c")]
ctx.actions.run(
inputs = srcs + hdrs,
inputs = inputs,
outputs = ctx.outputs.outs,
arguments = ["", ctx.bin_dir.path + "/"] + [f.path for f in srcs],
progress_message = "Making amalgamation",

@ -8,4 +8,4 @@ which bazel
bazel version
cd $(dirname $0)/../..
bazel test :all
bazel test --test_output=errors :all

Loading…
Cancel
Save