Port windows bootstrapping fix (#17225)

pull/17232/head
Mike Kruskal 5 months ago committed by GitHub
parent 4923b8d72d
commit 19bd2115d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 9
      upb_generator/bootstrap_compiler.bzl

@ -126,7 +126,14 @@ def _cmake_staleness_test(name, base_dir, src_files, proto_lib_deps, **kwargs):
name = name + "_copy_gencode_%d" % genrule,
outs = ["generated_sources/" + src],
srcs = [name, name + "_minitable"],
cmd = "mkdir -p $(@D); for src in $(SRCS); do cp -f $$src $(@D) || echo 'copy failed!'; done",
cmd = """
mkdir -p $(@D)
for src in $(SRCS); do
if [[ $$src == *%s ]]; then
cp -f $$src $(@D) || echo 'copy failed!'
fi
done
""" % src[src.rfind("/"):],
)
# Keep bazel gencode in sync with our checked-in sources needed for cmake builds.

Loading…
Cancel
Save