mirror of
https://github.com/abseil/abseil-cpp.git
synced 2026-06-04 12:07:05 +08:00
-- 730bb88bee556aa11fa19aa33e1434cb6fa78985 by Evan Brown <ezb@google.com>: Support missing allocator-related constructors in b-tree. See [reference](https://en.cppreference.com/w/cpp/container/set/set). Also use allocator_traits::select_on_container_copy_construction() to get allocator for copy construction. PiperOrigin-RevId: 339058322 -- b6cc121689ae3e452d1db2d66122cb198d25142b by Derek Mauro <dmauro@google.com>: Fix more sign-compare warnings PiperOrigin-RevId: 339057920 -- 0e2c62da1dcaf6529abab952bdcc96c6de2d9506 by Abseil Team <absl-team@google.com>: Add missing <limits> include PiperOrigin-RevId: 339054753 -- d5a9ec2d1e40fe6359e720942e4955009ee415ec by Derek Mauro <dmauro@google.com>: Stop disabling sign-compare warnings for non-test targets. Our users complain about these. This does not catch issues in header-only libraries (like btree.h) but we may work on those in the future PiperOrigin-RevId: 338967089 -- 0c062c542a4c61ea0f65d25811827c0858e3adde by Abseil Team <absl-team@google.com>: Improve cache-locality for ThreadIdentity and PerThreadSynch. This is a change based on an observation in RPC benchmarks that shows significant cycles being spent in waking up a thread, 99.8% of which was on cache misses. Investigating this a bit more, it turns out to be due to sharing the cache line with the waiter state. To fix this issue, the following changes are introduced: - Reorder fields in PerThreadSync so that it fits in a single cache line The size of this structure was 80 bytes before this change. Note: Manually inspected all booleans to make sure they are not modified by multiple threads concurrently. PiperOrigin-RevId: 338852058 -- a90d6f2b2346385017e32dd8ae1b5ca691a5863f by Derek Mauro <dmauro@google.com>: Delete GCC 4.9 test script. It is no longer supported PiperOrigin-RevId: 338779452 -- 7274008d4757e88869110be9db39d03d911ae2b5 by Abseil Team <absl-team@google.com>: Fix the usage example in which SetFlag should take a pointer. PiperOrigin-RevId: 338744529 GitOrigin-RevId: 730bb88bee556aa11fa19aa33e1434cb6fa78985 Change-Id: Iff99594c4022e60e482a392d334b376c7ae8883e
215 lines
5.0 KiB
Python
215 lines
5.0 KiB
Python
"""GENERATED! DO NOT MANUALLY EDIT THIS FILE.
|
|
|
|
(1) Edit absl/copts/copts.py.
|
|
(2) Run `python <path_to_absl>/copts/generate_copts.py`.
|
|
"""
|
|
|
|
ABSL_CLANG_CL_FLAGS = [
|
|
"/W3",
|
|
"-Wno-c++98-compat-pedantic",
|
|
"-Wno-conversion",
|
|
"-Wno-covered-switch-default",
|
|
"-Wno-deprecated",
|
|
"-Wno-disabled-macro-expansion",
|
|
"-Wno-double-promotion",
|
|
"-Wno-comma",
|
|
"-Wno-extra-semi",
|
|
"-Wno-extra-semi-stmt",
|
|
"-Wno-packed",
|
|
"-Wno-padded",
|
|
"-Wno-float-conversion",
|
|
"-Wno-float-equal",
|
|
"-Wno-format-nonliteral",
|
|
"-Wno-gcc-compat",
|
|
"-Wno-global-constructors",
|
|
"-Wno-exit-time-destructors",
|
|
"-Wno-non-modular-include-in-module",
|
|
"-Wno-old-style-cast",
|
|
"-Wno-range-loop-analysis",
|
|
"-Wno-reserved-id-macro",
|
|
"-Wno-shorten-64-to-32",
|
|
"-Wno-switch-enum",
|
|
"-Wno-thread-safety-negative",
|
|
"-Wno-unknown-warning-option",
|
|
"-Wno-unreachable-code",
|
|
"-Wno-unused-macros",
|
|
"-Wno-weak-vtables",
|
|
"-Wno-zero-as-null-pointer-constant",
|
|
"-Wbitfield-enum-conversion",
|
|
"-Wbool-conversion",
|
|
"-Wconstant-conversion",
|
|
"-Wenum-conversion",
|
|
"-Wint-conversion",
|
|
"-Wliteral-conversion",
|
|
"-Wnon-literal-null-conversion",
|
|
"-Wnull-conversion",
|
|
"-Wobjc-literal-conversion",
|
|
"-Wno-sign-conversion",
|
|
"-Wstring-conversion",
|
|
"/DNOMINMAX",
|
|
"/DWIN32_LEAN_AND_MEAN",
|
|
"/D_CRT_SECURE_NO_WARNINGS",
|
|
"/D_SCL_SECURE_NO_WARNINGS",
|
|
"/D_ENABLE_EXTENDED_ALIGNED_STORAGE",
|
|
]
|
|
|
|
ABSL_CLANG_CL_TEST_FLAGS = [
|
|
"-Wno-c99-extensions",
|
|
"-Wno-deprecated-declarations",
|
|
"-Wno-missing-noreturn",
|
|
"-Wno-missing-prototypes",
|
|
"-Wno-missing-variable-declarations",
|
|
"-Wno-null-conversion",
|
|
"-Wno-shadow",
|
|
"-Wno-shift-sign-overflow",
|
|
"-Wno-sign-compare",
|
|
"-Wno-unused-function",
|
|
"-Wno-unused-member-function",
|
|
"-Wno-unused-parameter",
|
|
"-Wno-unused-private-field",
|
|
"-Wno-unused-template",
|
|
"-Wno-used-but-marked-unused",
|
|
"-Wno-zero-as-null-pointer-constant",
|
|
"-Wno-gnu-zero-variadic-macro-arguments",
|
|
]
|
|
|
|
ABSL_GCC_FLAGS = [
|
|
"-Wall",
|
|
"-Wextra",
|
|
"-Wcast-qual",
|
|
"-Wconversion-null",
|
|
"-Wmissing-declarations",
|
|
"-Woverlength-strings",
|
|
"-Wpointer-arith",
|
|
"-Wundef",
|
|
"-Wunused-local-typedefs",
|
|
"-Wunused-result",
|
|
"-Wvarargs",
|
|
"-Wvla",
|
|
"-Wwrite-strings",
|
|
"-Wno-missing-field-initializers",
|
|
"-DNOMINMAX",
|
|
]
|
|
|
|
ABSL_GCC_TEST_FLAGS = [
|
|
"-Wno-conversion-null",
|
|
"-Wno-deprecated-declarations",
|
|
"-Wno-missing-declarations",
|
|
"-Wno-sign-compare",
|
|
"-Wno-unused-function",
|
|
"-Wno-unused-parameter",
|
|
"-Wno-unused-private-field",
|
|
]
|
|
|
|
ABSL_LLVM_FLAGS = [
|
|
"-Wall",
|
|
"-Wextra",
|
|
"-Weverything",
|
|
"-Wno-c++98-compat-pedantic",
|
|
"-Wno-conversion",
|
|
"-Wno-covered-switch-default",
|
|
"-Wno-deprecated",
|
|
"-Wno-disabled-macro-expansion",
|
|
"-Wno-double-promotion",
|
|
"-Wno-comma",
|
|
"-Wno-extra-semi",
|
|
"-Wno-extra-semi-stmt",
|
|
"-Wno-packed",
|
|
"-Wno-padded",
|
|
"-Wno-float-conversion",
|
|
"-Wno-float-equal",
|
|
"-Wno-format-nonliteral",
|
|
"-Wno-gcc-compat",
|
|
"-Wno-global-constructors",
|
|
"-Wno-exit-time-destructors",
|
|
"-Wno-non-modular-include-in-module",
|
|
"-Wno-old-style-cast",
|
|
"-Wno-range-loop-analysis",
|
|
"-Wno-reserved-id-macro",
|
|
"-Wno-shorten-64-to-32",
|
|
"-Wno-switch-enum",
|
|
"-Wno-thread-safety-negative",
|
|
"-Wno-unknown-warning-option",
|
|
"-Wno-unreachable-code",
|
|
"-Wno-unused-macros",
|
|
"-Wno-weak-vtables",
|
|
"-Wno-zero-as-null-pointer-constant",
|
|
"-Wbitfield-enum-conversion",
|
|
"-Wbool-conversion",
|
|
"-Wconstant-conversion",
|
|
"-Wenum-conversion",
|
|
"-Wint-conversion",
|
|
"-Wliteral-conversion",
|
|
"-Wnon-literal-null-conversion",
|
|
"-Wnull-conversion",
|
|
"-Wobjc-literal-conversion",
|
|
"-Wno-sign-conversion",
|
|
"-Wstring-conversion",
|
|
"-DNOMINMAX",
|
|
]
|
|
|
|
ABSL_LLVM_TEST_FLAGS = [
|
|
"-Wno-c99-extensions",
|
|
"-Wno-deprecated-declarations",
|
|
"-Wno-missing-noreturn",
|
|
"-Wno-missing-prototypes",
|
|
"-Wno-missing-variable-declarations",
|
|
"-Wno-null-conversion",
|
|
"-Wno-shadow",
|
|
"-Wno-shift-sign-overflow",
|
|
"-Wno-sign-compare",
|
|
"-Wno-unused-function",
|
|
"-Wno-unused-member-function",
|
|
"-Wno-unused-parameter",
|
|
"-Wno-unused-private-field",
|
|
"-Wno-unused-template",
|
|
"-Wno-used-but-marked-unused",
|
|
"-Wno-zero-as-null-pointer-constant",
|
|
"-Wno-gnu-zero-variadic-macro-arguments",
|
|
]
|
|
|
|
ABSL_MSVC_FLAGS = [
|
|
"/W3",
|
|
"/DNOMINMAX",
|
|
"/DWIN32_LEAN_AND_MEAN",
|
|
"/D_CRT_SECURE_NO_WARNINGS",
|
|
"/D_SCL_SECURE_NO_WARNINGS",
|
|
"/D_ENABLE_EXTENDED_ALIGNED_STORAGE",
|
|
"/bigobj",
|
|
"/wd4005",
|
|
"/wd4068",
|
|
"/wd4180",
|
|
"/wd4244",
|
|
"/wd4267",
|
|
"/wd4503",
|
|
"/wd4800",
|
|
]
|
|
|
|
ABSL_MSVC_LINKOPTS = [
|
|
"-ignore:4221",
|
|
]
|
|
|
|
ABSL_MSVC_TEST_FLAGS = [
|
|
"/wd4018",
|
|
"/wd4101",
|
|
"/wd4503",
|
|
"/wd4996",
|
|
"/DNOMINMAX",
|
|
]
|
|
|
|
ABSL_RANDOM_HWAES_ARM32_FLAGS = [
|
|
"-mfpu=neon",
|
|
]
|
|
|
|
ABSL_RANDOM_HWAES_ARM64_FLAGS = [
|
|
"-march=armv8-a+crypto",
|
|
]
|
|
|
|
ABSL_RANDOM_HWAES_MSVC_X64_FLAGS = [
|
|
]
|
|
|
|
ABSL_RANDOM_HWAES_X64_FLAGS = [
|
|
"-maes",
|
|
"-msse4.1",
|
|
]
|