|
|
|
@ -104,17 +104,40 @@ CXX_basicprof = $(DEFAULT_CXX) |
|
|
|
|
LD_basicprof = $(DEFAULT_CC)
|
|
|
|
|
LDXX_basicprof = $(DEFAULT_CXX)
|
|
|
|
|
CPPFLAGS_basicprof = -O2 -DGRPC_BASIC_PROFILER -DGRPC_TIMERS_RDTSC
|
|
|
|
|
LDFLAGS_basicprof =
|
|
|
|
|
DEFINES_basicprof = NDEBUG
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_stapprof = 1
|
|
|
|
|
CC_stapprof = $(DEFAULT_CC)
|
|
|
|
|
CXX_stapprof = $(DEFAULT_CXX)
|
|
|
|
|
LD_stapprof = $(DEFAULT_CC)
|
|
|
|
|
LDXX_stapprof = $(DEFAULT_CXX)
|
|
|
|
|
CPPFLAGS_stapprof = -O2 -DGRPC_STAP_PROFILER
|
|
|
|
|
LDFLAGS_stapprof =
|
|
|
|
|
DEFINES_stapprof = NDEBUG
|
|
|
|
|
VALID_CONFIG_helgrind = 1
|
|
|
|
|
CC_helgrind = $(DEFAULT_CC)
|
|
|
|
|
CXX_helgrind = $(DEFAULT_CXX)
|
|
|
|
|
LD_helgrind = $(DEFAULT_CC)
|
|
|
|
|
LDXX_helgrind = $(DEFAULT_CXX)
|
|
|
|
|
CPPFLAGS_helgrind = -O0
|
|
|
|
|
LDFLAGS_helgrind = -rdynamic
|
|
|
|
|
DEFINES_helgrind = _DEBUG DEBUG
|
|
|
|
|
DEFINES_helgrind += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=20
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_asan-noleaks = 1
|
|
|
|
|
REQUIRE_CUSTOM_LIBRARIES_asan-noleaks = 1
|
|
|
|
|
CC_asan-noleaks = clang
|
|
|
|
|
CXX_asan-noleaks = clang++
|
|
|
|
|
LD_asan-noleaks = clang
|
|
|
|
|
LDXX_asan-noleaks = clang++
|
|
|
|
|
CFLAGS_asan-noleaks = -O0 -fsanitize=address -fno-omit-frame-pointer -Wno-unused-command-line-argument
|
|
|
|
|
CXXFLAGS_asan-noleaks = -O0 -fsanitize=address -fno-omit-frame-pointer -Wno-unused-command-line-argument
|
|
|
|
|
LDFLAGS_asan-noleaks = -fsanitize=address
|
|
|
|
|
DEFINES_asan-noleaks += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=1.5
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_ubsan = 1
|
|
|
|
|
REQUIRE_CUSTOM_LIBRARIES_ubsan = 1
|
|
|
|
|
CC_ubsan = clang
|
|
|
|
|
CXX_ubsan = clang++
|
|
|
|
|
LD_ubsan = clang
|
|
|
|
|
LDXX_ubsan = clang++
|
|
|
|
|
CFLAGS_ubsan = -O1 -fsanitize=undefined -fno-omit-frame-pointer -Wno-unused-command-line-argument
|
|
|
|
|
CXXFLAGS_ubsan = -O1 -fsanitize=undefined -fno-omit-frame-pointer -Wno-unused-command-line-argument
|
|
|
|
|
LDFLAGS_ubsan = -fsanitize=undefined
|
|
|
|
|
DEFINES_ubsan = NDEBUG
|
|
|
|
|
DEFINES_ubsan += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=1.5
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_dbg = 1
|
|
|
|
|
CC_dbg = $(DEFAULT_CC)
|
|
|
|
@ -125,35 +148,33 @@ CPPFLAGS_dbg = -O0 |
|
|
|
|
LDFLAGS_dbg = -rdynamic
|
|
|
|
|
DEFINES_dbg = _DEBUG DEBUG
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_mutrace = 1
|
|
|
|
|
CC_mutrace = $(DEFAULT_CC)
|
|
|
|
|
CXX_mutrace = $(DEFAULT_CXX)
|
|
|
|
|
LD_mutrace = $(DEFAULT_CC)
|
|
|
|
|
LDXX_mutrace = $(DEFAULT_CXX)
|
|
|
|
|
CPPFLAGS_mutrace = -O0
|
|
|
|
|
LDFLAGS_mutrace = -rdynamic
|
|
|
|
|
DEFINES_mutrace = _DEBUG DEBUG
|
|
|
|
|
VALID_CONFIG_stapprof = 1
|
|
|
|
|
CC_stapprof = $(DEFAULT_CC)
|
|
|
|
|
CXX_stapprof = $(DEFAULT_CXX)
|
|
|
|
|
LD_stapprof = $(DEFAULT_CC)
|
|
|
|
|
LDXX_stapprof = $(DEFAULT_CXX)
|
|
|
|
|
CPPFLAGS_stapprof = -O2 -DGRPC_STAP_PROFILER
|
|
|
|
|
DEFINES_stapprof = NDEBUG
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_valgrind = 1
|
|
|
|
|
REQUIRE_CUSTOM_LIBRARIES_valgrind = 1
|
|
|
|
|
CC_valgrind = $(DEFAULT_CC)
|
|
|
|
|
CXX_valgrind = $(DEFAULT_CXX)
|
|
|
|
|
LD_valgrind = $(DEFAULT_CC)
|
|
|
|
|
LDXX_valgrind = $(DEFAULT_CXX)
|
|
|
|
|
CPPFLAGS_valgrind = -O0
|
|
|
|
|
LDFLAGS_valgrind = -rdynamic
|
|
|
|
|
DEFINES_valgrind = _DEBUG DEBUG GRPC_TEST_SLOWDOWN_BUILD_FACTOR=20
|
|
|
|
|
VALID_CONFIG_gcov = 1
|
|
|
|
|
CC_gcov = gcc
|
|
|
|
|
CXX_gcov = g++
|
|
|
|
|
LD_gcov = gcc
|
|
|
|
|
LDXX_gcov = g++
|
|
|
|
|
CFLAGS_gcov = -O0 -fprofile-arcs -ftest-coverage -Wno-return-type
|
|
|
|
|
CXXFLAGS_gcov = -O0 -fprofile-arcs -ftest-coverage -Wno-return-type
|
|
|
|
|
LDFLAGS_gcov = -fprofile-arcs -ftest-coverage -rdynamic
|
|
|
|
|
DEFINES_gcov = _DEBUG DEBUG GPR_GCOV
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_tsan = 1
|
|
|
|
|
REQUIRE_CUSTOM_LIBRARIES_tsan = 1
|
|
|
|
|
CC_tsan = clang
|
|
|
|
|
CXX_tsan = clang++
|
|
|
|
|
LD_tsan = clang
|
|
|
|
|
LDXX_tsan = clang++
|
|
|
|
|
CFLAGS_tsan = -O0 -fsanitize=thread -fno-omit-frame-pointer -Wno-unused-command-line-argument -fPIE -pie
|
|
|
|
|
CXXFLAGS_tsan = -O0 -fsanitize=thread -fno-omit-frame-pointer -Wno-unused-command-line-argument -fPIE -pie
|
|
|
|
|
LDFLAGS_tsan = -fsanitize=thread -fPIE -pie $(if $(JENKINS_BUILD),-Wl$(comma)-Ttext-segment=0x7e0000000000,)
|
|
|
|
|
DEFINES_tsan = NDEBUG GRPC_TEST_SLOWDOWN_BUILD_FACTOR=10
|
|
|
|
|
VALID_CONFIG_memcheck = 1
|
|
|
|
|
CC_memcheck = $(DEFAULT_CC)
|
|
|
|
|
CXX_memcheck = $(DEFAULT_CXX)
|
|
|
|
|
LD_memcheck = $(DEFAULT_CC)
|
|
|
|
|
LDXX_memcheck = $(DEFAULT_CXX)
|
|
|
|
|
CPPFLAGS_memcheck = -O0
|
|
|
|
|
LDFLAGS_memcheck = -rdynamic
|
|
|
|
|
DEFINES_memcheck = _DEBUG DEBUG
|
|
|
|
|
DEFINES_memcheck += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=10
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_asan = 1
|
|
|
|
|
REQUIRE_CUSTOM_LIBRARIES_asan = 1
|
|
|
|
@ -164,39 +185,40 @@ LDXX_asan = clang++ |
|
|
|
|
CFLAGS_asan = -O0 -fsanitize=address -fno-omit-frame-pointer -Wno-unused-command-line-argument
|
|
|
|
|
CXXFLAGS_asan = -O0 -fsanitize=address -fno-omit-frame-pointer -Wno-unused-command-line-argument
|
|
|
|
|
LDFLAGS_asan = -fsanitize=address
|
|
|
|
|
DEFINES_asan = GRPC_TEST_SLOWDOWN_BUILD_FACTOR=3
|
|
|
|
|
DEFINES_asan += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=1.5
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_tsan = 1
|
|
|
|
|
REQUIRE_CUSTOM_LIBRARIES_tsan = 1
|
|
|
|
|
CC_tsan = clang
|
|
|
|
|
CXX_tsan = clang++
|
|
|
|
|
LD_tsan = clang
|
|
|
|
|
LDXX_tsan = clang++
|
|
|
|
|
CFLAGS_tsan = -O0 -fsanitize=thread -fno-omit-frame-pointer -Wno-unused-command-line-argument -fPIE -pie
|
|
|
|
|
CXXFLAGS_tsan = -O0 -fsanitize=thread -fno-omit-frame-pointer -Wno-unused-command-line-argument -fPIE -pie
|
|
|
|
|
LDFLAGS_tsan = -fsanitize=thread -fPIE -pie $(if $(JENKINS_BUILD),-Wl$(comma)-Ttext-segment=0x7e0000000000,)
|
|
|
|
|
DEFINES_tsan += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=2
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_msan = 1
|
|
|
|
|
REQUIRE_CUSTOM_LIBRARIES_msan = 1
|
|
|
|
|
CC_msan = clang
|
|
|
|
|
CXX_msan = clang++-libc++
|
|
|
|
|
CXX_msan = clang++
|
|
|
|
|
LD_msan = clang
|
|
|
|
|
LDXX_msan = clang++-libc++
|
|
|
|
|
LDXX_msan = clang++
|
|
|
|
|
CFLAGS_msan = -O0 -fsanitize=memory -fsanitize-memory-track-origins -fno-omit-frame-pointer -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_USE_OWN_TR1_TUPLE=1 -Wno-unused-command-line-argument -fPIE -pie
|
|
|
|
|
CXXFLAGS_msan = -O0 -fsanitize=memory -fsanitize-memory-track-origins -fno-omit-frame-pointer -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_USE_OWN_TR1_TUPLE=1 -Wno-unused-command-line-argument -fPIE -pie
|
|
|
|
|
LDFLAGS_msan = -fsanitize=memory -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_USE_OWN_TR1_TUPLE=1 -fPIE -pie $(if $(JENKINS_BUILD),-Wl$(comma)-Ttext-segment=0x7e0000000000,)
|
|
|
|
|
DEFINES_msan = NDEBUG GRPC_TEST_SLOWDOWN_BUILD_FACTOR=4
|
|
|
|
|
DEFINES_msan = NDEBUG
|
|
|
|
|
DEFINES_msan += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=1.5
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_ubsan = 1
|
|
|
|
|
REQUIRE_CUSTOM_LIBRARIES_ubsan = 1
|
|
|
|
|
CC_ubsan = clang
|
|
|
|
|
CXX_ubsan = clang++
|
|
|
|
|
LD_ubsan = clang
|
|
|
|
|
LDXX_ubsan = clang++
|
|
|
|
|
CFLAGS_ubsan = -O1 -fsanitize=undefined -fno-omit-frame-pointer -Wno-unused-command-line-argument
|
|
|
|
|
CXXFLAGS_ubsan = -O1 -fsanitize=undefined -fno-omit-frame-pointer -Wno-unused-command-line-argument
|
|
|
|
|
LDFLAGS_ubsan = -fsanitize=undefined
|
|
|
|
|
DEFINES_ubsan = NDEBUG GRPC_TEST_SLOWDOWN_BUILD_FACTOR=3
|
|
|
|
|
VALID_CONFIG_mutrace = 1
|
|
|
|
|
CC_mutrace = $(DEFAULT_CC)
|
|
|
|
|
CXX_mutrace = $(DEFAULT_CXX)
|
|
|
|
|
LD_mutrace = $(DEFAULT_CC)
|
|
|
|
|
LDXX_mutrace = $(DEFAULT_CXX)
|
|
|
|
|
CPPFLAGS_mutrace = -O0
|
|
|
|
|
LDFLAGS_mutrace = -rdynamic
|
|
|
|
|
DEFINES_mutrace = _DEBUG DEBUG
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_gcov = 1
|
|
|
|
|
CC_gcov = gcc
|
|
|
|
|
CXX_gcov = g++
|
|
|
|
|
LD_gcov = gcc
|
|
|
|
|
LDXX_gcov = g++
|
|
|
|
|
CFLAGS_gcov = -O0 -fprofile-arcs -ftest-coverage -Wno-return-type
|
|
|
|
|
CXXFLAGS_gcov = -O0 -fprofile-arcs -ftest-coverage -Wno-return-type
|
|
|
|
|
LDFLAGS_gcov = -fprofile-arcs -ftest-coverage -rdynamic
|
|
|
|
|
DEFINES_gcov = _DEBUG DEBUG GPR_GCOV
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# General settings.
|
|
|
|
|