aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/Makefile.template
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-05-29 08:42:16 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-05-29 08:42:16 -0700
commit5c0f97d557fe07cf9789bbee7daee0fa9d0df1b1 (patch)
treeaba2f31447b19bd2a16490c2e14de597510ab278 /templates/Makefile.template
parentcd43da82f88e4d77fc4f09813cf7312441c5c36f (diff)
Disable optimization on tsan builds
Diffstat (limited to 'templates/Makefile.template')
-rw-r--r--templates/Makefile.template2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/Makefile.template b/templates/Makefile.template
index bc8f1bb1d0..099a722873 100644
--- a/templates/Makefile.template
+++ b/templates/Makefile.template
@@ -157,7 +157,7 @@ CC_tsan = clang
CXX_tsan = clang++
LD_tsan = clang
LDXX_tsan = clang++
-CPPFLAGS_tsan = -O1 -fsanitize=thread -fno-omit-frame-pointer
+CPPFLAGS_tsan = -O0 -fsanitize=thread -fno-omit-frame-pointer
LDFLAGS_tsan = -fsanitize=thread
DEFINES_tsan = NDEBUG GRPC_TEST_SLOWDOWN_BUILD_FACTOR=10