Joshua Haberman
555fbbc0bc
Size benchmarks are working pretty well.
4 years ago
Joshua Haberman
3a3efe69a2
Added incompatible_use_toolchain_transition = True per https://github.com/bazelbuild/bazel/issues/11584
4 years ago
Joshua Haberman
e8f9eac68c
Added #defines UPB_ENABLE_FASTTABLE and UPB_TRY_ENABLE_FASTTABLE.
...
These control whether fasttable decoding is on.
4 years ago
Benjamin Peterson
b5bd5807a7
Migrate to modern Starlark linking api.
...
See https://github.com/bazelbuild/bazel/issues/10860 .
4 years ago
Joshua Haberman
7e5bd65098
Plumbed copts (including the crucial -std=c99) to upb_proto_library() aspect.
4 years ago
Joshua Haberman
a274ad786a
Plumbed copts (including the crucial -std=c99) to upb_proto_library() aspect.
4 years ago
Joshua Haberman
a345af9883
Added a codegen parameter for whether fasttables are generated or not.
...
Example:
$ CC=clang bazel build -c opt --copt=-g benchmarks:benchmark --//:fasttable_enabled=false
INFO: Build option --//:fasttable_enabled has changed, discarding analysis cache.
INFO: Analyzed target //benchmarks:benchmark (0 packages loaded, 913 targets configured).
INFO: Found 1 target...
Target //benchmarks:benchmark up-to-date:
bazel-bin/benchmarks/benchmark
INFO: Elapsed time: 0.760s, Critical Path: 0.58s
INFO: 7 processes: 1 internal, 6 linux-sandbox.
INFO: Build completed successfully, 7 total actions
$ bazel-bin/benchmarks/benchmark --benchmark_filter=BM_Parse_Upb
------------------------------------------------------------------------------
Benchmark Time CPU Iterations
------------------------------------------------------------------------------
BM_Parse_Upb_FileDesc_WithArena 10985 ns 10984 ns 63567 651.857MB/s
BM_Parse_Upb_FileDesc_WithInitialBlock 10556 ns 10554 ns 66138 678.458MB/s
$ CC=clang bazel build -c opt --copt=-g benchmarks:benchmark --//:fasttable_enabled=true
INFO: Build option --//:fasttable_enabled has changed, discarding analysis cache.
INFO: Analyzed target //benchmarks:benchmark (0 packages loaded, 913 targets configured).
INFO: Found 1 target...
Target //benchmarks:benchmark up-to-date:
bazel-bin/benchmarks/benchmark
INFO: Elapsed time: 0.744s, Critical Path: 0.58s
INFO: 7 processes: 1 internal, 6 linux-sandbox.
INFO: Build completed successfully, 7 total actions
$ bazel-bin/benchmarks/benchmark --benchmark_filter=BM_Parse_Upb
------------------------------------------------------------------------------
Benchmark Time CPU Iterations
------------------------------------------------------------------------------
BM_Parse_Upb_FileDesc_WithArena 3284 ns 3284 ns 213495 2.1293GB/s
BM_Parse_Upb_FileDesc_WithInitialBlock 2882 ns 2882 ns 243069 2.4262GB/s
Biggest unknown is whether this parameter should default to true or false.
4 years ago
Joshua Haberman
e3f41de6c7
Split monolithic BUILD file into many build files.
4 years ago
Joshua Haberman
d225dfc2ed
Buildifier formatting fixes.
4 years ago
Joshua Haberman
6fe84526be
Mark _is_bazel to be replace in google3.
4 years ago
Joshua Haberman
8f11ec57d2
Applied changes from google3.
5 years ago
Joshua Haberman
0dc2394da5
Changes to support import into google3 ( #291 )
...
* Fixes for google3.
* Added to failure list for new failure.
* Reused existing failure list file.
* Add a ./ to assist rewriting.
5 years ago
Yannic
d638d74d1b
Add load statements for @rules_proto ( #271 )
...
This makes upb compatible with --incompatible_load_proto_rules_from_bzl.
See https://github.com/bazelbuild/bazel/issues/8922
5 years ago
Joshua Haberman
6c5d5afc43
Remove compatibility code for old Bazel versions.
5 years ago
Anna R
a27429f265
Add port_def.inc and port_undef.inc to generated code hdrs
5 years ago
Anna R
3797ad2217
port should not be public
5 years ago
Anna R
fc4941183f
Add :port dependencies to libraries that include it
5 years ago
Joshua Haberman
626ec4bfcf
Everything builds, test pass except test_decoder.
5 years ago
Lizan Zhou
b973c06480
prefix bazel_version
...
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
5 years ago
Joshua Haberman
5768e68ed7
Fixed for Bazel >= 1.0.
5 years ago
Nicolas "Pixel" Noble
a2013f0fc2
Trying to be more flexible with the version of bazel we can use here.
5 years ago
Nicolas "Pixel" Noble
6e85c2bf03
Fixing the separator string.
5 years ago
Nicolas "Pixel" Noble
9605c7093c
Revert previous fix - to_list() is too new, or...?
5 years ago
Joshua Haberman
ee87a28d2d
Some minor style fixes.
6 years ago
Joshua Haberman
493e9b2614
Build fixes from fuzz target.
6 years ago
Joshua Haberman
75d680d7b0
Small fix to upb_proto_library().
6 years ago
Joshua Haberman
57a63d4c7b
Fixed upb_proto_library() logic for calculating output dir.
6 years ago
Joshua Haberman
ba29af3a6a
Hid generated-code-only headers inside a separate library.
6 years ago
Laurent Le Brun
1a5a609b0e
Update upb_proto_library.bzl for Bazel compatibility
...
With this change, the code now builds with the flags --incompatible_depset_is_not_iterable, --incompatible_new_actions_api, and --incompatible_no_support_tools_in_action_inputs.
These flags will soon be enabled by default in Bazel.
6 years ago
Marcel Hlopko
6d204851d2
Update upb to be forward compatible with Bazel 0.27
...
Specifically, this PR prepares up for:
https://github.com/bazelbuild/bazel/issues/7793
https://github.com/bazelbuild/bazel/issues/7260
6 years ago
Joshua Haberman
5611ff267b
Moved bazel files to bazel/ directory.
6 years ago
Joshua Haberman
06b90f9b69
Split upb_proto_library.bzl into its own .bzl file.
6 years ago
Joshua Haberman
1cf4af7b2c
A (final?) round of Blaze fixes.
6 years ago
Joshua Haberman
e04216eb0f
More Blaze fixes.
6 years ago
Joshua Haberman
7913bc678a
Removed obsolete references to runfiles scripts.
6 years ago
Joshua Haberman
81e813d389
Made upb_proto_reflection_library() a true aspect.
6 years ago
Joshua Haberman
301b6e2d78
Removed map_dep() in favor of rewrites.
6 years ago
Joshua Haberman
13eb14986b
More fixes for Blaze.
6 years ago
Joshua Haberman
a37877a326
Fixes for Blaze.
6 years ago
Joshua Haberman
0fea70b4d9
Works with Bazel 0.24.1 and Bazel 0.25.2!
6 years ago
Joshua Haberman
e294a16c08
Added name to cc_library_func() to avoid conflicts.
6 years ago
Joshua Haberman
6c1b78f095
Update Skylib and update to newer Sandwich API.
6 years ago
Joshua Haberman
20d849a5e0
Fixes for Bazel 0.25.
...
Disabled the conformance tests for now because I didn't push
the necessary changes to the protobuf repo yet.
6 years ago
Joshua Haberman
985145ca16
Fixed amalgamation and CMake build.
6 years ago
Joshua Haberman
d6e466e943
More refactoring/simplification.
6 years ago
Joshua Haberman
65f97218d1
Removed some obsolete code.
6 years ago
Josh Haberman
9fa3e8bd62
Fix the Ubuntu build.
6 years ago
Joshua Haberman
239d4a90db
Fixed upb_proto_library() for macOS.
6 years ago
Josh Haberman
cd9e1e6817
upb_proto_library() aspect is working, even for external repos.
6 years ago
Josh Haberman
f3c560122a
upb_proto_library() works for local project!
...
Doesn't work for remote projects yet though.
6 years ago