Skip to content

Commit

Permalink
Merge from master.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgiven committed May 1, 2024
2 parents 653a6a0 + 34f9738 commit 6e5abd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions build/protobuf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
)
from build.c import cxxlibrary
from types import SimpleNamespace
import build.pkg
from build.pkg import package

emit(
"""
Expand All @@ -22,6 +22,7 @@
"""
)

lib = package(name="protobuf_lib", package="protobuf")

@Rule
def proto(self, name, srcs: Targets = None, deps: Targets = None):
Expand Down Expand Up @@ -67,6 +68,6 @@ def protocc(self, name, srcs: Targets = None, deps: Targets = None):
cxxlibrary(
replaces=self,
srcs=[r],
deps=targetswithtraitsof(deps, "cheaders"),
deps=targetswithtraitsof(deps, "cheaders") + [lib],
hdrs=headers,
)
2 changes: 1 addition & 1 deletion scripts/encodedecodetest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [ ! -s $destfile ]; then
exit 1
fi

truncate $srcfile -r $destfile
truncate -r $destfile $srcfile
if ! cmp $srcfile $destfile; then
echo "Comparison failed!" >&2
exit 1
Expand Down

0 comments on commit 6e5abd1

Please sign in to comment.