-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy path.bazelrc.absl
More file actions
18 lines (16 loc) · 1.31 KB
/
.bazelrc.absl
File metadata and controls
18 lines (16 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# In order to support both Unixen and Windows, different styles of compiler
# flags must be used.
#
# This .bazelrc file specifies different compiler flags for Linux/Darwin versus
# Windows.
#
# This bazelrc defines the `DD_USE_ABSEIL_FOR_ENVOY` preprocessor macro, and so
# the resulting library will use `absl::string_view` and `absl::optional`
# instead of their standard (`std`) equivalents.
#
# Additionally, we configure Abseil to not use std library types by setting
# the appropriate ABSL_OPTION_* macros, replacing the need for patching.
build --enable_platform_specific_config
build:linux --cxxopt='-std=c++17' --cxxopt='-Wall' --cxxopt='-Wextra' --cxxopt='-pedantic' --cxxopt='-DDD_USE_ABSEIL_FOR_ENVOY' --cxxopt='-DABSL_OPTION_USE_STD_OPTIONAL=0' --cxxopt='-DABSL_OPTION_USE_STD_STRING_VIEW=0' --cxxopt='-DABSL_OPTION_USE_STD_VARIANT=0'
build:macos --cxxopt='-std=c++17' --cxxopt='-Wall' --cxxopt='-Wextra' --cxxopt='-pedantic' --cxxopt='-DDD_USE_ABSEIL_FOR_ENVOY' --cxxopt='-DABSL_OPTION_USE_STD_OPTIONAL=0' --cxxopt='-DABSL_OPTION_USE_STD_STRING_VIEW=0' --cxxopt='-DABSL_OPTION_USE_STD_VARIANT=0'
build:windows --cxxopt='/std:c++17' --cxxopt='/DDD_USE_ABSEIL_FOR_ENVOY' --cxxopt='/DABSL_OPTION_USE_STD_OPTIONAL=0' --cxxopt='/DABSL_OPTION_USE_STD_STRING_VIEW=0' --cxxopt='/DABSL_OPTION_USE_STD_VARIANT=0' --linkopt='ws2_32.lib'