|
|
|
'#1': This file describes the list of targets and dependencies.
|
|
|
|
'#2': It is used among other things to generate all of our project files.
|
|
|
|
'#3': Please refer to the templates directory for more information.
|
|
|
|
settings:
|
|
|
|
'#01': The public version number of the library.
|
|
|
|
'#02': ===
|
|
|
|
'#03': Please update the 'g_stands_for' field periodically with a new g word
|
|
|
|
'#04': not listed in doc/g_stands_for.md - and update that document to list the
|
|
|
|
'#05': new word. When doing so, please also update BUILD.
|
|
|
|
'#06': ===
|
|
|
|
'#07': Master always has a "-dev" suffix
|
|
|
|
'#08': Use "-preN" suffixes to identify pre-release versions
|
|
|
|
'#09': Per-language overrides are possible with (eg) ruby_version tag here
|
|
|
|
'#10': See the expand_version.py for all the quirks here
|
|
|
|
core_version: 33.0.0
|
|
|
|
csharp_major_version: 2
|
|
|
|
g_stands_for: grounded
|
|
|
|
protobuf_version: 3.23.1
|
|
|
|
version: 1.57.0-dev
|
|
|
|
configs:
|
|
|
|
asan:
|
|
|
|
CC: clang
|
|
|
|
CPPFLAGS: -O0 -fsanitize-coverage=edge,trace-pc-guard -fsanitize=address -fno-omit-frame-pointer
|
|
|
|
-Wno-unused-command-line-argument -DGPR_NO_DIRECT_SYSCALLS
|
|
|
|
CXX: clang++
|
|
|
|
LD: clang++
|
|
|
|
LDFLAGS: -fsanitize=address
|
|
|
|
LDXX: clang++
|
|
|
|
compile_the_world: true
|
|
|
|
test_environ:
|
|
|
|
ASAN_OPTIONS: detect_leaks=1:color=always
|
|
|
|
LSAN_OPTIONS: suppressions=test/core/util/lsan_suppressions.txt:report_objects=1
|
|
|
|
asan-noleaks:
|
|
|
|
CC: clang
|
|
|
|
CPPFLAGS: -O0 -fsanitize-coverage=edge,trace-pc-guard -fsanitize=address -fno-omit-frame-pointer
|
|
|
|
-Wno-unused-command-line-argument -DGPR_NO_DIRECT_SYSCALLS
|
|
|
|
CXX: clang++
|
|
|
|
LD: clang++
|
|
|
|
LDFLAGS: fsanitize=address
|
|
|
|
LDXX: clang++
|
|
|
|
compile_the_world: true
|
|
|
|
test_environ:
|
|
|
|
ASAN_OPTIONS: detect_leaks=0:color=always
|
|
|
|
asan-trace-cmp:
|
|
|
|
CC: clang
|
|
|
|
CPPFLAGS: -O0 -fsanitize-coverage=edge,trace-pc-guard -fsanitize-coverage=trace-cmp
|
|
|
|
-fsanitize=address -fno-omit-frame-pointer -Wno-unused-command-line-argument
|
|
|
|
-DGPR_NO_DIRECT_SYSCALLS
|
|
|
|
CXX: clang++
|
|
|
|
LD: clang++
|
|
|
|
LDFLAGS: -fsanitize=address
|
|
|
|
LDXX: clang++
|
|
|
|
compile_the_world: true
|
|
|
|
test_environ:
|
|
|
|
ASAN_OPTIONS: detect_leaks=1:color=always
|
|
|
|
LSAN_OPTIONS: suppressions=test/core/util/lsan_suppressions.txt:report_objects=1
|
|
|
|
c++-compat:
|
|
|
|
CFLAGS: -Wc++-compat
|
|
|
|
CPPFLAGS: -O0
|
|
|
|
DEFINES: _DEBUG DEBUG
|
|
|
|
dbg:
|
|
|
|
CPPFLAGS: -O0
|
|
|
|
DEFINES: _DEBUG DEBUG
|
|
|
|
gcov:
|
|
|
|
CC: gcc
|
|
|
|
CPPFLAGS: -O0 -fprofile-arcs -ftest-coverage -Wno-return-type
|
|
|
|
CXX: g++
|
|
|
|
DEFINES: _DEBUG DEBUG GPR_GCOV
|
|
|
|
LD: gcc
|
|
|
|
LDFLAGS: -fprofile-arcs -ftest-coverage -rdynamic -lstdc++
|
|
|
|
LDXX: g++
|
|
|
|
helgrind:
|
|
|
|
CPPFLAGS: -O0
|
|
|
|
DEFINES: _DEBUG DEBUG
|
|
|
|
LDFLAGS: -rdynamic
|
|
|
|
valgrind: --tool=helgrind
|
|
|
|
lto:
|
|
|
|
CPPFLAGS: -O2
|
|
|
|
DEFINES: NDEBUG
|
|
|
|
memcheck:
|
|
|
|
CPPFLAGS: -O0
|
|
|
|
DEFINES: _DEBUG DEBUG
|
|
|
|
LDFLAGS: -rdynamic
|
|
|
|
valgrind: --tool=memcheck --leak-check=full
|
|
|
|
msan:
|
|
|
|
CC: clang
|
|
|
|
CPPFLAGS: -O0 -stdlib=libc++ -fsanitize-coverage=edge,trace-pc-guard -fsanitize=memory
|
|
|
|
-fsanitize-memory-track-origins -fsanitize-memory-use-after-dtor -fno-omit-frame-pointer
|
|
|
|
-DGTEST_HAS_TR1_TUPLE=0 -DGTEST_USE_OWN_TR1_TUPLE=1 -Wno-unused-command-line-argument
|
|
|
|
-fPIE -pie -DGPR_NO_DIRECT_SYSCALLS
|
|
|
|
CXX: clang++
|
|
|
|
DEFINES: NDEBUG
|
|
|
|
LD: clang++
|
|
|
|
LDFLAGS: -stdlib=libc++ -fsanitize=memory -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_USE_OWN_TR1_TUPLE=1
|
|
|
|
-fPIE -pie $(if $(JENKINS_BUILD),-Wl$(comma)-Ttext-segment=0x7e0000000000,)
|
|
|
|
LDXX: clang++
|
|
|
|
compile_the_world: true
|
|
|
|
test_environ:
|
|
|
|
MSAN_OPTIONS: poison_in_dtor=1
|
|
|
|
noexcept:
|
|
|
|
CPPFLAGS: -O2 -Wframe-larger-than=16384
|
|
|
|
CXXFLAGS: -fno-exceptions
|
|
|
|
DEFINES: NDEBUG
|
|
|
|
opt:
|
|
|
|
CPPFLAGS: -O2 -Wframe-larger-than=16384
|
|
|
|
DEFINES: NDEBUG
|
|
|
|
tsan:
|
|
|
|
CC: clang
|
|
|
|
CPPFLAGS: -O0 -fsanitize=thread -fno-omit-frame-pointer -Wno-unused-command-line-argument
|
|
|
|
-DGPR_NO_DIRECT_SYSCALLS
|
|
|
|
CXX: clang++
|
|
|
|
DEFINES: GRPC_TSAN
|
|
|
|
LD: clang++
|
|
|
|
LDFLAGS: -fsanitize=thread
|
|
|
|
LDXX: clang++
|
|
|
|
compile_the_world: true
|
|
|
|
test_environ:
|
|
|
|
TSAN_OPTIONS: suppressions=test/core/util/tsan_suppressions.txt:halt_on_error=1:second_deadlock_stack=1
|
|
|
|
ubsan:
|
|
|
|
CC: clang
|
|
|
|
CPPFLAGS: -O0 -stdlib=libc++ -fsanitize-coverage=edge,trace-pc-guard -fsanitize=undefined
|
|
|
|
-fno-omit-frame-pointer -Wno-unused-command-line-argument -Wvarargs
|
|
|
|
CXX: clang++
|
|
|
|
DEFINES: NDEBUG GRPC_UBSAN
|
|
|
|
LD: clang++
|
|
|
|
LDFLAGS: -stdlib=libc++ -fsanitize=undefined,unsigned-integer-overflow
|
|
|
|
LDXX: clang++
|
|
|
|
compile_the_world: true
|
|
|
|
test_environ:
|
|
|
|
UBSAN_OPTIONS: halt_on_error=1:print_stacktrace=1:suppressions=test/core/util/ubsan_suppressions.txt
|
|
|
|
defaults:
|
|
|
|
abseil:
|
|
|
|
CPPFLAGS: -g -Ithird_party/abseil-cpp
|
|
|
|
ares:
|
|
|
|
CFLAGS: -g
|
|
|
|
CPPFLAGS: -Ithird_party/cares/cares/include -Ithird_party/cares -Ithird_party/cares/cares
|
|
|
|
-fvisibility=hidden -D_GNU_SOURCE $(if $(subst Darwin,,$(SYSTEM)),,-Ithird_party/cares/config_darwin)
|
|
|
|
$(if $(subst FreeBSD,,$(SYSTEM)),,-Ithird_party/cares/config_freebsd) $(if $(subst
|
|
|
|
Linux,,$(SYSTEM)),,-Ithird_party/cares/config_linux) $(if $(subst OpenBSD,,$(SYSTEM)),,-Ithird_party/cares/config_openbsd)
|
|
|
|
-DWIN32_LEAN_AND_MEAN -D_HAS_EXCEPTIONS=0 -DNOMINMAX $(if $(subst MINGW32,,$(SYSTEM)),-DHAVE_CONFIG_H,)
|
|
|
|
benchmark:
|
|
|
|
CPPFLAGS: -Ithird_party/benchmark/include -DHAVE_POSIX_REGEX
|
|
|
|
boringssl:
|
|
|
|
CFLAGS: -g
|
|
|
|
CPPFLAGS: -Ithird_party/boringssl-with-bazel/src/include -fvisibility=hidden -DOPENSSL_NO_ASM
|
|
|
|
-D_GNU_SOURCE -DWIN32_LEAN_AND_MEAN -D_HAS_EXCEPTIONS=0 -DNOMINMAX
|
|
|
|
CXXFLAGS: -fno-exceptions
|
|
|
|
global:
|
|
|
|
CFLAGS: -g
|
|
|
|
COREFLAGS: -fno-exceptions
|
|
|
|
CPPFLAGS: -g -Wall -Wextra -DOSATOMIC_USE_INLINED=1 -Ithird_party/abseil-cpp -Ithird_party/re2
|
|
|
|
-Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated
|
[protobuf] Upgrade third_party/protobuf to 22.x (#32606)
The very non-trivial upgrade of third_party/protobuf to 22.x
This PR strives to be as small as possible and many changes that were
compatible with protobuf 21.x and didn't have to be merged atomically
with the upgrade were already merged.
Due to the complexity of the upgrade, this PR wasn't created
automatically by a tool, but manually. Subsequent upgraded of
third_party/protobuf with our OSS release script should work again once
this change is merged.
This is best reviewed commit-by-commit, I tried to group changes in
logical areas.
Notable changes:
- the upgrade of third_party/protobuf submodule, the bazel protobuf
dependency itself
- upgrade of UPB dependency to 22.x (in the past, we used to always
upgrade upb to "main", but upb now has release branch as well). UPB
needs to be upgraded atomically with protobuf since there's a de-facto
circular dependency (new protobuf depends on new upb, which depends on
new protobuf for codegen).
- some protobuf and upb bazel rules are now aliases, so `
extract_metadata_from_bazel_xml.py` and `gen_upb_api_from_bazel_xml.py`
had to be modified to be able to follow aliases and reach the actual
aliased targets.
- some protobuf public headers were renamed, so especially
`src/compiler` needed to be updated to use the new headers.
- protobuf and upb now both depend on utf8_range project, so since we
bundle upb with grpc in some languages, we now have to bundle utf8_range
as well (hence changes in build for python, PHP, objC, cmake etc).
- protoc now depends on absl and utf8_range (previously protobuf had
absl dependency, but not for the codegen part), so python's
make_grpcio_tools.py required partial rewrite to be able to handle those
dependencies in the grpcio_tools build.
- many updates and fixes required for C++ distribtests (currently they
all pass, but we'll probably need to follow up, make protobuf's and
grpc's handling of dependencies more aligned and revisit the
distribtests)
- bunch of other changes mostly due to overhaul of protobuf's and upb's
internal build layout.
TODOs:
- [DONE] make sure IWYU and clang_tidy_code pass
- create a list of followups (e.g. work to reenable the few tests I had
to disable and to remove workaround I had to use)
- [DONE in cl/523706129] figure out problem(s) with internal import
---------
Co-authored-by: Craig Tiller <ctiller@google.com>
2 years ago
|
|
|
-Ithird_party/utf8_range -Ithird_party/xxhash
|
|
|
|
LDFLAGS: -g
|
|
|
|
zlib:
|
|
|
|
CFLAGS: -fvisibility=hidden
|
|
|
|
CPPFLAGS: -DHAVE_UNISTD_H
|
|
|
|
php_config_m4:
|
|
|
|
deps:
|
|
|
|
- grpc
|
|
|
|
- address_sorting
|
|
|
|
- boringssl
|
|
|
|
- re2
|
|
|
|
- z
|
|
|
|
headers:
|
|
|
|
- src/php/ext/grpc/byte_buffer.h
|
|
|
|
- src/php/ext/grpc/call.h
|
|
|
|
- src/php/ext/grpc/call_credentials.h
|
|
|
|
- src/php/ext/grpc/channel.h
|
|
|
|
- src/php/ext/grpc/channel_credentials.h
|
|
|
|
- src/php/ext/grpc/completion_queue.h
|
|
|
|
- src/php/ext/grpc/php7_wrapper.h
|
|
|
|
- src/php/ext/grpc/php_grpc.h
|
|
|
|
- src/php/ext/grpc/server.h
|
|
|
|
- src/php/ext/grpc/server_credentials.h
|
|
|
|
- src/php/ext/grpc/timeval.h
|
|
|
|
- src/php/ext/grpc/version.h
|
|
|
|
src:
|
|
|
|
- src/php/ext/grpc/byte_buffer.c
|
|
|
|
- src/php/ext/grpc/call.c
|
|
|
|
- src/php/ext/grpc/call_credentials.c
|
|
|
|
- src/php/ext/grpc/channel.c
|
|
|
|
- src/php/ext/grpc/channel_credentials.c
|
|
|
|
- src/php/ext/grpc/completion_queue.c
|
|
|
|
- src/php/ext/grpc/php_grpc.c
|
|
|
|
- src/php/ext/grpc/server.c
|
|
|
|
- src/php/ext/grpc/server_credentials.c
|
|
|
|
- src/php/ext/grpc/timeval.c
|
|
|
|
python_dependencies:
|
|
|
|
deps:
|
|
|
|
- grpc
|
|
|
|
- address_sorting
|
|
|
|
- ares
|
|
|
|
- boringssl
|
|
|
|
- re2
|
|
|
|
- z
|
|
|
|
ruby_gem:
|
|
|
|
deps:
|
|
|
|
- grpc
|
|
|
|
- address_sorting
|
|
|
|
- ares
|
|
|
|
- boringssl
|
|
|
|
- re2
|
|
|
|
- z
|