Skip to content

Commit fcb1045

Browse files
Abseil Teamahedberg
authored andcommitted
Creation of LTS branch "lts_2018_12_18"
- 44b0faf Export of internal Abseil changes. by Abseil Team <[email protected]> - 926bfeb Export of internal Abseil changes. by Abseil Team <[email protected]> - 13327de Export of internal Abseil changes. by Abseil Team <[email protected]> - 3088e76 Export of internal Abseil changes. by Abseil Team <[email protected]> - f6ae816 Export of internal Abseil changes. by Abseil Team <[email protected]> - a06c4a1 Export of internal Abseil changes. by Abseil Team <[email protected]> - 7b46e1d Export of internal Abseil changes. by Abseil Team <[email protected]> - 070f6e4 Export of internal Abseil changes. by Abseil Team <[email protected]> - 7990fd4 Export of internal Abseil changes. by Abseil Team <[email protected]> - f951790 Export of internal Abseil changes. by Abseil Team <[email protected]> - cc8dcd3 Export of internal Abseil changes. by Abseil Team <[email protected]> - a705aa7 Merge pull request #194 from Mizux/windows by Xiaoyi Zhang <[email protected]> - a4c3fff Export of internal Abseil changes. by Abseil Team <[email protected]> - 0117457 Merge pull request #201 from ccawley2011/fix-byteswap by Matt Calabrese <[email protected]> - f86f941 Export of internal Abseil changes. by Abseil Team <[email protected]> - 94c298e Export of internal Abseil changes. by Abseil Team <[email protected]> - 0884a6a Export of internal Abseil changes. by Abseil Team <[email protected]> - c16d555 Export of internal Abseil changes. by Abseil Team <[email protected]> - 45221cc Export of internal Abseil changes. by Abseil Team <[email protected]> - 2019e17 Export of internal Abseil changes. by Abseil Team <[email protected]> - 5b70a89 Export of internal Abseil changes. by Abseil Team <[email protected]> - a00bdd1 Export of internal Abseil changes. by Abseil Team <[email protected]> - f340f77 Export of internal Abseil changes. by Abseil Team <[email protected]> - 445998d Export of internal Abseil changes. by Abseil Team <[email protected]> - e821380 Export of internal Abseil changes. by Abseil Team <[email protected]> - f21d187 Export of internal Abseil changes. by Abseil Team <[email protected]> - 5441bbe Fix code snippet in comment (#174) by Loo Rong Jie <[email protected]> - 5aae0cf Fix CMake build (#173) by Stephan Dollberg <[email protected]> - 48cd2c3 Export of internal Abseil changes. by Abseil Team <[email protected]> - e291c27 Export of internal Abseil changes. by Abseil Team <[email protected]> - e01d955 Export of internal Abseil changes. by Abseil Team <[email protected]> - 8ff1374 Export of internal Abseil changes. by Abseil Team <[email protected]> - 0245191 Export of internal Abseil changes. by Abseil Team <[email protected]> - 921fd5c Merge pull request #166 from rongjiecomputer/cmake-test by Gennadiy Civil <[email protected]> - fb46222 Export of internal Abseil changes. by Abseil Team <[email protected]> - c075ad3 Export of internal Abseil changes. by Abseil Team <[email protected]> - 0f4bc96 Export of internal Abseil changes. by Abseil Team <[email protected]> - 6c7e5ff Export of internal Abseil changes. by Abseil Team <[email protected]> - d6df769 Export of internal Abseil changes. by Abseil Team <[email protected]> - 28080f5 Export of internal Abseil changes. by Abseil Team <[email protected]> - 9c987f4 Export of internal Abseil changes. by Abseil Team <[email protected]> - 5e7d459 Export of internal Abseil changes. by Abseil Team <[email protected]> - bed5bd6 Export of internal Abseil changes. by Abseil Team <[email protected]> - fefc836 Export of internal Abseil changes. by Abseil Team <[email protected]> - d8cfe9f Export of internal Abseil changes. by Abseil Team <[email protected]> - ad5c960 Export of internal Abseil changes. by Abseil Team <[email protected]> - 86f0fe9 Export of internal Abseil changes. by Abseil Team <[email protected]> - f0f15c2 Export of internal Abseil changes. by Abseil Team <[email protected]> - 29ff6d4 Removed "warning treated as error" flag from MSVC (#153) by vocaviking <[email protected]> - 083d04d Export of internal Abseil changes. by Abseil Team <[email protected]> - bea85b5 Export of internal Abseil changes. by Abseil Team <[email protected]> - 8f96be6 Export of internal Abseil changes. by Abseil Team <[email protected]> - 92e07e5 Merge pull request #152 from clnperez/fix-multi-defines-p... by Derek Mauro <[email protected]> - 2125e64 Export of internal Abseil changes. by Abseil Team <[email protected]> - 9acad86 Merge pull request #150 from OlafvdSpek/patch-2 by Jonathan Cohen <[email protected]> - c2e00d3 Export of internal Abseil changes. by Abseil Team <[email protected]> - 9e06068 Export of internal Abseil changes. by Abseil Team <[email protected]> - 7aa411c Export of internal Abseil changes. by Abseil Team <[email protected]> - 2c5af55 Export of internal Abseil changes. by Abseil Team <[email protected]> - 44aa275 Merge pull request #143 from rongjiecomputer/kernel by Xiaoyi Zhang <[email protected]> - 42f22a2 Export of internal Abseil changes. by Abseil Team <[email protected]> - b973bc5 Merge pull request #139 from siepkes/smartos-support by ahedberg <[email protected]> - e0def74 Export of internal Abseil changes. by Abseil Team <[email protected]> - f826f1d Merge pull request #138 from edbaunton/remove-deprecated-... by ahedberg <[email protected]> - 7b50a4a Export of internal Abseil changes. by Abseil Team <[email protected]> - a5030ca Merge pull request #144 from rongjiecomputer/winsock2 by Xiaoyi Zhang <[email protected]> - 0268795 Export of internal Abseil changes. by Abseil Team <[email protected]> - 8f612eb Export of internal Abseil changes. by Abseil Team <[email protected]> - 134496a Export of internal Abseil changes. by Abseil Team <[email protected]> - ba8d6cf Export of internal Abseil changes. by Abseil Team <[email protected]> - be1e84b Export of internal Abseil changes. by Abseil Team <[email protected]> - 16ac2ec Merge pull request #134 from rongjiecomputer/cmake by Alex Strelnikov <[email protected]> - 7efd8dc Export of internal Abseil changes. by Abseil Team <[email protected]> - 87a4c07 Export of internal Abseil changes. by Abseil Team <[email protected]> - 4491d60 Export of internal Abseil changes. by Abseil Team <[email protected]> GitOrigin-RevId: 44b0faf Change-Id: I2c427b5b41b2d34101922048b00f3d9dafcb498d
1 parent 6c7de16 commit fcb1045

File tree

963 files changed

+35672
-4925
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

963 files changed

+35672
-4925
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
# Ignore all bazel-* symlinks.
22
/bazel-*
3+
# Ignore Bazel verbose explanations
4+
--verbose_explanations
5+
# Ignore CMake usual build directory
6+
build
7+
# Ignore Vim files
8+
*.swp
9+
# Ignore QtCreator Project file
10+
CMakeLists.txt.user
11+
# Ignore VS Code files
12+
.vscode/*

CMake/AbseilConfigureCopts.cmake

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
# Abseil-specific compiler flags. See absl/copts.bzl for description.
2+
# DO NOT CHANGE THIS FILE WITHOUT THE CORRESPONDING CHANGE TO absl/copts.bzl
3+
4+
list(APPEND GCC_FLAGS
5+
-Wall
6+
-Wextra
7+
-Wcast-qual
8+
-Wconversion-null
9+
-Wmissing-declarations
10+
-Woverlength-strings
11+
-Wpointer-arith
12+
-Wunused-local-typedefs
13+
-Wunused-result
14+
-Wvarargs
15+
-Wwrite-strings
16+
-Wno-sign-compare
17+
)
18+
19+
list(APPEND GCC_TEST_FLAGS
20+
-Wno-conversion-null
21+
-Wno-missing-declarations
22+
-Wno-sign-compare
23+
-Wno-unused-function
24+
-Wno-unused-parameter
25+
-Wno-unused-private-field
26+
)
27+
28+
list(APPEND LLVM_FLAGS
29+
-Wall
30+
-Wextra
31+
-Weverything
32+
-Wno-c++98-compat-pedantic
33+
-Wno-conversion
34+
-Wno-covered-switch-default
35+
-Wno-deprecated
36+
-Wno-disabled-macro-expansion
37+
-Wno-double-promotion
38+
-Wno-comma
39+
-Wno-extra-semi
40+
-Wno-packed
41+
-Wno-padded
42+
-Wno-sign-compare
43+
-Wno-float-conversion
44+
-Wno-float-equal
45+
-Wno-format-nonliteral
46+
-Wno-gcc-compat
47+
-Wno-global-constructors
48+
-Wno-exit-time-destructors
49+
-Wno-nested-anon-types
50+
-Wno-non-modular-include-in-module
51+
-Wno-old-style-cast
52+
-Wno-range-loop-analysis
53+
-Wno-reserved-id-macro
54+
-Wno-shorten-64-to-32
55+
-Wno-switch-enum
56+
-Wno-thread-safety-negative
57+
-Wno-undef
58+
-Wno-unknown-warning-option
59+
-Wno-unreachable-code
60+
-Wno-unused-macros
61+
-Wno-weak-vtables
62+
-Wbitfield-enum-conversion
63+
-Wbool-conversion
64+
-Wconstant-conversion
65+
-Wenum-conversion
66+
-Wint-conversion
67+
-Wliteral-conversion
68+
-Wnon-literal-null-conversion
69+
-Wnull-conversion
70+
-Wobjc-literal-conversion
71+
-Wno-sign-conversion
72+
-Wstring-conversion
73+
)
74+
75+
list(APPEND LLVM_TEST_FLAGS
76+
-Wno-c99-extensions
77+
-Wno-missing-noreturn
78+
-Wno-missing-prototypes
79+
-Wno-missing-variable-declarations
80+
-Wno-null-conversion
81+
-Wno-shadow
82+
-Wno-shift-sign-overflow
83+
-Wno-sign-compare
84+
-Wno-unused-function
85+
-Wno-unused-member-function
86+
-Wno-unused-parameter
87+
-Wno-unused-private-field
88+
-Wno-unused-template
89+
-Wno-used-but-marked-unused
90+
-Wno-zero-as-null-pointer-constant
91+
-Wno-gnu-zero-variadic-macro-arguments
92+
)
93+
94+
list(APPEND MSVC_FLAGS
95+
/W3
96+
/wd4005
97+
/wd4018
98+
/wd4068
99+
/wd4180
100+
/wd4244
101+
/wd4267
102+
/wd4800
103+
/DNOMINMAX
104+
/DWIN32_LEAN_AND_MEAN
105+
/D_CRT_SECURE_NO_WARNINGS
106+
/D_SCL_SECURE_NO_WARNINGS
107+
/D_ENABLE_EXTENDED_ALIGNED_STORAGE
108+
)
109+
110+
list(APPEND MSVC_TEST_FLAGS
111+
/wd4101
112+
/wd4503
113+
)
114+
115+
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
116+
set(ABSL_DEFAULT_COPTS "${GCC_FLAGS}")
117+
set(ABSL_TEST_COPTS "${GCC_FLAGS};${GCC_TEST_FLAGS}")
118+
set(ABSL_EXCEPTIONS_FLAG "-fexceptions")
119+
elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
120+
# MATCHES so we get both Clang and AppleClang
121+
set(ABSL_DEFAULT_COPTS "${LLVM_FLAGS}")
122+
set(ABSL_TEST_COPTS "${LLVM_FLAGS};${LLVM_TEST_FLAGS}")
123+
set(ABSL_EXCEPTIONS_FLAG "-fexceptions")
124+
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
125+
set(ABSL_DEFAULT_COPTS "${MSVC_FLAGS}")
126+
set(ABSL_TEST_COPTS "${MSVC_FLAGS};${MSVC_TEST_FLAGS}")
127+
set(ABSL_EXCEPTIONS_FLAG "/U_HAS_EXCEPTIONS;/D_HAS_EXCEPTIONS=1;/EHsc")
128+
else()
129+
message(WARNING "Unknown compiler: ${CMAKE_CXX_COMPILER}. Building with no default flags")
130+
set(ABSL_DEFAULT_COPTS "")
131+
set(ABSL_TEST_COPTS "")
132+
set(ABSL_EXCEPTIONS_FLAG "")
133+
endif()
134+
135+
# This flag is used internally for Bazel builds and is kept here for consistency
136+
set(ABSL_EXCEPTIONS_FLAG_LINKOPTS "")
137+
138+
if("${CMAKE_CXX_STANDARD}" EQUAL 98)
139+
message(FATAL_ERROR "Abseil requires at least C++11")
140+
elseif(NOT "${CMAKE_CXX_STANDARD}")
141+
message(STATUS "No CMAKE_CXX_STANDARD set, assuming 11")
142+
set(ABSL_CXX_STANDARD 11)
143+
else()
144+
set(ABSL_CXX_STANDARD "${CMAKE_CXX_STANDARD}")
145+
endif()

0 commit comments

Comments
 (0)