|
|
|
@ -95,6 +95,46 @@ LDXX_opt = $(DEFAULT_CXX) |
|
|
|
|
CPPFLAGS_opt = -O2
|
|
|
|
|
DEFINES_opt = NDEBUG
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_dbg = 1
|
|
|
|
|
CC_dbg = $(DEFAULT_CC)
|
|
|
|
|
CXX_dbg = $(DEFAULT_CXX)
|
|
|
|
|
LD_dbg = $(DEFAULT_CC)
|
|
|
|
|
LDXX_dbg = $(DEFAULT_CXX)
|
|
|
|
|
CPPFLAGS_dbg = -O0
|
|
|
|
|
DEFINES_dbg = _DEBUG DEBUG
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_easan = 1
|
|
|
|
|
REQUIRE_CUSTOM_LIBRARIES_easan = 1
|
|
|
|
|
CC_easan = clang
|
|
|
|
|
CXX_easan = clang++
|
|
|
|
|
LD_easan = clang
|
|
|
|
|
LDXX_easan = clang++
|
|
|
|
|
CPPFLAGS_easan = -O0 -fsanitize=address -fno-omit-frame-pointer -Wno-unused-command-line-argument -DGPR_NO_DIRECT_SYSCALLS
|
|
|
|
|
LDFLAGS_easan = -fsanitize=address
|
|
|
|
|
DEFINES_easan = _DEBUG DEBUG GRPC_EXECUTION_CONTEXT_SANITIZER
|
|
|
|
|
DEFINES_easan += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=3
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_asan = 1
|
|
|
|
|
REQUIRE_CUSTOM_LIBRARIES_asan = 1
|
|
|
|
|
CC_asan = clang
|
|
|
|
|
CXX_asan = clang++
|
|
|
|
|
LD_asan = clang
|
|
|
|
|
LDXX_asan = clang++
|
|
|
|
|
CPPFLAGS_asan = -O0 -fsanitize=address -fno-omit-frame-pointer -Wno-unused-command-line-argument -DGPR_NO_DIRECT_SYSCALLS
|
|
|
|
|
LDFLAGS_asan = -fsanitize=address
|
|
|
|
|
DEFINES_asan += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=3
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_msan = 1
|
|
|
|
|
REQUIRE_CUSTOM_LIBRARIES_msan = 1
|
|
|
|
|
CC_msan = clang
|
|
|
|
|
CXX_msan = clang++
|
|
|
|
|
LD_msan = clang
|
|
|
|
|
LDXX_msan = clang++
|
|
|
|
|
CPPFLAGS_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 -DGPR_NO_DIRECT_SYSCALLS
|
|
|
|
|
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
|
|
|
|
|
DEFINES_msan += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=4
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_basicprof = 1
|
|
|
|
|
CC_basicprof = $(DEFAULT_CC)
|
|
|
|
|
CXX_basicprof = $(DEFAULT_CXX)
|
|
|
|
@ -123,6 +163,14 @@ CPPFLAGS_asan-noleaks = -O0 -fsanitize=address -fno-omit-frame-pointer -Wno-unus |
|
|
|
|
LDFLAGS_asan-noleaks = -fsanitize=address
|
|
|
|
|
DEFINES_asan-noleaks += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=3
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_edbg = 1
|
|
|
|
|
CC_edbg = $(DEFAULT_CC)
|
|
|
|
|
CXX_edbg = $(DEFAULT_CXX)
|
|
|
|
|
LD_edbg = $(DEFAULT_CC)
|
|
|
|
|
LDXX_edbg = $(DEFAULT_CXX)
|
|
|
|
|
CPPFLAGS_edbg = -O0
|
|
|
|
|
DEFINES_edbg = _DEBUG DEBUG GRPC_EXECUTION_CONTEXT_SANITIZER
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_ubsan = 1
|
|
|
|
|
REQUIRE_CUSTOM_LIBRARIES_ubsan = 1
|
|
|
|
|
CC_ubsan = clang
|
|
|
|
@ -134,13 +182,15 @@ LDFLAGS_ubsan = -fsanitize=undefined |
|
|
|
|
DEFINES_ubsan = NDEBUG
|
|
|
|
|
DEFINES_ubsan += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=1.5
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_dbg = 1
|
|
|
|
|
CC_dbg = $(DEFAULT_CC)
|
|
|
|
|
CXX_dbg = $(DEFAULT_CXX)
|
|
|
|
|
LD_dbg = $(DEFAULT_CC)
|
|
|
|
|
LDXX_dbg = $(DEFAULT_CXX)
|
|
|
|
|
CPPFLAGS_dbg = -O0
|
|
|
|
|
DEFINES_dbg = _DEBUG DEBUG
|
|
|
|
|
VALID_CONFIG_tsan = 1
|
|
|
|
|
REQUIRE_CUSTOM_LIBRARIES_tsan = 1
|
|
|
|
|
CC_tsan = clang
|
|
|
|
|
CXX_tsan = clang++
|
|
|
|
|
LD_tsan = clang
|
|
|
|
|
LDXX_tsan = clang++
|
|
|
|
|
CPPFLAGS_tsan = -O0 -fsanitize=thread -fno-omit-frame-pointer -Wno-unused-command-line-argument -fPIE -pie -DGPR_NO_DIRECT_SYSCALLS
|
|
|
|
|
LDFLAGS_tsan = -fsanitize=thread -fPIE -pie $(if $(JENKINS_BUILD),-Wl$(comma)-Ttext-segment=0x7e0000000000,)
|
|
|
|
|
DEFINES_tsan += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=5
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_stapprof = 1
|
|
|
|
|
CC_stapprof = $(DEFAULT_CC)
|
|
|
|
@ -150,14 +200,14 @@ LDXX_stapprof = $(DEFAULT_CXX) |
|
|
|
|
CPPFLAGS_stapprof = -O2 -DGRPC_STAP_PROFILER
|
|
|
|
|
DEFINES_stapprof = NDEBUG
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_gcov = 1
|
|
|
|
|
CC_gcov = gcc
|
|
|
|
|
CXX_gcov = g++
|
|
|
|
|
LD_gcov = gcc
|
|
|
|
|
LDXX_gcov = g++
|
|
|
|
|
CPPFLAGS_gcov = -O0 -fprofile-arcs -ftest-coverage -Wno-return-type
|
|
|
|
|
LDFLAGS_gcov = -fprofile-arcs -ftest-coverage -rdynamic
|
|
|
|
|
DEFINES_gcov = _DEBUG DEBUG GPR_GCOV
|
|
|
|
|
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_memcheck = 1
|
|
|
|
|
CC_memcheck = $(DEFAULT_CC)
|
|
|
|
@ -169,56 +219,25 @@ LDFLAGS_memcheck = -rdynamic |
|
|
|
|
DEFINES_memcheck = _DEBUG DEBUG
|
|
|
|
|
DEFINES_memcheck += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=10
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_asan = 1
|
|
|
|
|
REQUIRE_CUSTOM_LIBRARIES_asan = 1
|
|
|
|
|
CC_asan = clang
|
|
|
|
|
CXX_asan = clang++
|
|
|
|
|
LD_asan = clang
|
|
|
|
|
LDXX_asan = clang++
|
|
|
|
|
CPPFLAGS_asan = -O0 -fsanitize=address -fno-omit-frame-pointer -Wno-unused-command-line-argument -DGPR_NO_DIRECT_SYSCALLS
|
|
|
|
|
LDFLAGS_asan = -fsanitize=address
|
|
|
|
|
DEFINES_asan += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=3
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_tsan = 1
|
|
|
|
|
REQUIRE_CUSTOM_LIBRARIES_tsan = 1
|
|
|
|
|
CC_tsan = clang
|
|
|
|
|
CXX_tsan = clang++
|
|
|
|
|
LD_tsan = clang
|
|
|
|
|
LDXX_tsan = clang++
|
|
|
|
|
CPPFLAGS_tsan = -O0 -fsanitize=thread -fno-omit-frame-pointer -Wno-unused-command-line-argument -fPIE -pie -DGPR_NO_DIRECT_SYSCALLS
|
|
|
|
|
LDFLAGS_tsan = -fsanitize=thread -fPIE -pie $(if $(JENKINS_BUILD),-Wl$(comma)-Ttext-segment=0x7e0000000000,)
|
|
|
|
|
DEFINES_tsan += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=5
|
|
|
|
|
VALID_CONFIG_etsan = 1
|
|
|
|
|
REQUIRE_CUSTOM_LIBRARIES_etsan = 1
|
|
|
|
|
CC_etsan = clang
|
|
|
|
|
CXX_etsan = clang++
|
|
|
|
|
LD_etsan = clang
|
|
|
|
|
LDXX_etsan = clang++
|
|
|
|
|
CPPFLAGS_etsan = -O0 -fsanitize=thread -fno-omit-frame-pointer -Wno-unused-command-line-argument -fPIE -pie -DGPR_NO_DIRECT_SYSCALLS
|
|
|
|
|
LDFLAGS_etsan = -fsanitize=thread -fPIE -pie $(if $(JENKINS_BUILD),-Wl$(comma)-Ttext-segment=0x7e0000000000,)
|
|
|
|
|
DEFINES_etsan = _DEBUG DEBUG GRPC_EXECUTION_CONTEXT_SANITIZER
|
|
|
|
|
DEFINES_etsan += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=5
|
|
|
|
|
|
|
|
|
|
VALID_CONFIG_msan = 1
|
|
|
|
|
REQUIRE_CUSTOM_LIBRARIES_msan = 1
|
|
|
|
|
CC_msan = clang
|
|
|
|
|
CXX_msan = clang++
|
|
|
|
|
LD_msan = clang
|
|
|
|
|
LDXX_msan = clang++
|
|
|
|
|
CPPFLAGS_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 -DGPR_NO_DIRECT_SYSCALLS
|
|
|
|
|
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
|
|
|
|
|
DEFINES_msan += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=4
|
|
|
|
|
|
|
|
|
|
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_esan = 1
|
|
|
|
|
REQUIRE_CUSTOM_LIBRARIES_esan = 1
|
|
|
|
|
CC_esan = clang
|
|
|
|
|
CXX_esan = clang++
|
|
|
|
|
LD_esan = clang
|
|
|
|
|
LDXX_esan = clang++
|
|
|
|
|
CPPFLAGS_esan = -O0 -fsanitize=thread -fno-omit-frame-pointer -Wno-unused-command-line-argument -fPIE -pie -DGPR_NO_DIRECT_SYSCALLS
|
|
|
|
|
LDFLAGS_esan = -fsanitize=thread -fPIE -pie $(if $(JENKINS_BUILD),-Wl$(comma)-Ttext-segment=0x7e0000000000,)
|
|
|
|
|
DEFINES_esan = _DEBUG DEBUG GRPC_EXECUTION_CONTEXT_SANITIZER
|
|
|
|
|
DEFINES_esan += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=5
|
|
|
|
|
VALID_CONFIG_gcov = 1
|
|
|
|
|
CC_gcov = gcc
|
|
|
|
|
CXX_gcov = g++
|
|
|
|
|
LD_gcov = gcc
|
|
|
|
|
LDXX_gcov = g++
|
|
|
|
|
CPPFLAGS_gcov = -O0 -fprofile-arcs -ftest-coverage -Wno-return-type
|
|
|
|
|
LDFLAGS_gcov = -fprofile-arcs -ftest-coverage -rdynamic
|
|
|
|
|
DEFINES_gcov = _DEBUG DEBUG GPR_GCOV
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|