From cdc442876b8d9d9dd748fac2ad1580b0338fe11d Mon Sep 17 00:00:00 2001 From: Esun Kim Date: Mon, 29 Jun 2020 17:51:33 -0700 Subject: [PATCH] Add abseil compiler options --- Makefile | 1 + build_handwritten.yaml | 2 ++ templates/Makefile.template | 1 + 3 files changed, 4 insertions(+) diff --git a/Makefile b/Makefile index b2099d3b6ce..810a5e08737 100644 --- a/Makefile +++ b/Makefile @@ -6601,6 +6601,7 @@ LIBGRPC_ABSEIL_SRC = \ LIBGRPC_ABSEIL_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(LIBGRPC_ABSEIL_SRC)))) +$(LIBGRPC_ABSEIL_OBJS): CPPFLAGS += -g -maes -msse4 -Ithird_party/abseil-cpp $(LIBDIR)/$(CONFIG)/libgrpc_abseil.a: $(LIBGRPC_ABSEIL_OBJS) $(E) "[AR] Creating $@" diff --git a/build_handwritten.yaml b/build_handwritten.yaml index 15594c622da..2653646db23 100644 --- a/build_handwritten.yaml +++ b/build_handwritten.yaml @@ -195,6 +195,8 @@ configs: test_environ: UBSAN_OPTIONS: halt_on_error=1:print_stacktrace=1:suppressions=test/core/util/ubsan_suppressions.txt defaults: + abseil: + CPPFLAGS: -g -maes -msse4 -Ithird_party/abseil-cpp ares: CFLAGS: -g CPPFLAGS: -Ithird_party/cares -Ithird_party/cares/cares -fvisibility=hidden -D_GNU_SOURCE diff --git a/templates/Makefile.template b/templates/Makefile.template index d62305f36f5..94c5020ddd7 100644 --- a/templates/Makefile.template +++ b/templates/Makefile.template @@ -1491,6 +1491,7 @@ "name": "grpc_abseil", "build": "private", "language": "c", + "defaults": "abseil", "src": sorted(used_abseil_srcs), "hdr": sorted(used_abseil_hdrs), "secure": False,