From 88e4ec9ea8276caa0e534f63bf6061011531c686 Mon Sep 17 00:00:00 2001 From: Mike Kruskal Date: Thu, 11 Apr 2024 07:46:46 -0700 Subject: [PATCH] Fix Windows 2019 linker error due to bootstrap/staleness issues PiperOrigin-RevId: 623824344 --- upb_generator/bootstrap_compiler.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upb_generator/bootstrap_compiler.bzl b/upb_generator/bootstrap_compiler.bzl index 640ec51971..4a3bd8ccdd 100644 --- a/upb_generator/bootstrap_compiler.bzl +++ b/upb_generator/bootstrap_compiler.bzl @@ -126,7 +126,7 @@ 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 = "for src in $(SRCS); do cp -f $$src $(@D) || echo 'copy failed!'; done", + cmd = "mkdir -p $(@D); for src in $(SRCS); do cp -f $$src $(@D) || echo 'copy failed!'; done", ) # Keep bazel gencode in sync with our checked-in sources needed for cmake builds.