Skip to content

Commit c76c951

Browse files
authored
bazel: update DEPS on googleurl (#17794)
* update DEPS on googleurl Signed-off-by: Renjie Tang <[email protected]> * try to fix MSVC complier issue Signed-off-by: Renjie Tang <[email protected]> * try to supress msvc 2397 warning Signed-off-by: Renjie Tang <[email protected]> * update to a later version Signed-off-by: Renjie Tang <[email protected]> * fix some MSVC compiler errors Signed-off-by: Renjie Tang <[email protected]>
1 parent 7bf466c commit c76c951

File tree

3 files changed

+58
-16
lines changed

3 files changed

+58
-16
lines changed

bazel/external/googleurl.patch

Lines changed: 54 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
# project using clang-cl. Tracked in https://github.com/envoyproxy/envoy/issues/11974.
33

44
diff --git a/base/compiler_specific.h b/base/compiler_specific.h
5-
index 0cd36dc..8c4cbd4 100644
5+
index 6651220..a469c19 100644
66
--- a/base/compiler_specific.h
77
+++ b/base/compiler_specific.h
88
@@ -7,10 +7,6 @@
9-
9+
1010
#include "build/build_config.h"
11-
11+
1212
-#if defined(COMPILER_MSVC) && !defined(__clang__)
1313
-#error "Only clang-cl is supported on Windows, see https://crbug.com/988071"
1414
-#endif
1515
-
16-
// Annotate a variable indicating it's ok if the variable is not used.
17-
// (Typically used to silence a compiler warning when the assignment
18-
// is important for some other reason.)
19-
@@ -55,8 +51,12 @@
20-
// prevent code folding, see gurl_base::debug::Alias.
16+
// This is a wrapper around `__has_cpp_attribute`, which can be used to test for
17+
// the presence of an attribute. In case the compiler does not support this
18+
// macro it will simply evaluate to 0.
19+
@@ -75,8 +71,12 @@
20+
// prevent code folding, see NO_CODE_FOLDING() in base/debug/alias.h.
2121
// Use like:
2222
// void NOT_TAIL_CALLED FooBar();
2323
-#if defined(__clang__) && __has_attribute(not_tail_called)
@@ -30,18 +30,18 @@ index 0cd36dc..8c4cbd4 100644
3030
#else
3131
#define NOT_TAIL_CALLED
3232
#endif
33-
@@ -226,7 +226,9 @@
33+
@@ -273,7 +273,9 @@
3434
#endif
3535
#endif
36-
36+
3737
-#if defined(__clang__) && __has_attribute(uninitialized)
3838
+#if defined(__clang__)
3939
+#if defined(__has_attribute)
4040
+#if __has_attribute(uninitialized)
4141
// Attribute "uninitialized" disables -ftrivial-auto-var-init=pattern for
4242
// the specified variable.
4343
// Library-wide alternative is
44-
@@ -257,6 +259,8 @@
44+
@@ -304,6 +306,8 @@
4545
// E.g. platform, bot, benchmark or test name in patch description or next to
4646
// the attribute.
4747
#define STACK_UNINITIALIZED __attribute__((uninitialized))
@@ -50,13 +50,55 @@ index 0cd36dc..8c4cbd4 100644
5050
#else
5151
#define STACK_UNINITIALIZED
5252
#endif
53+
@@ -365,8 +369,12 @@ inline constexpr bool AnalyzerAssumeTrue(bool arg) {
54+
#endif // defined(__clang_analyzer__)
55+
56+
// Use nomerge attribute to disable optimization of merging multiple same calls.
57+
-#if defined(__clang__) && __has_attribute(nomerge)
58+
+#if defined(__clang__)
59+
+#if defined(__has_attribute)
60+
+#if __has_attribute(nomerge)
61+
#define NOMERGE [[clang::nomerge]]
62+
+#endif
63+
+#endif
64+
#else
65+
#define NOMERGE
66+
#endif
67+
@@ -392,8 +400,12 @@ inline constexpr bool AnalyzerAssumeTrue(bool arg) {
68+
// See also:
69+
// https://clang.llvm.org/docs/AttributeReference.html#trivial-abi
70+
// https://libcxx.llvm.org/docs/DesignDocs/UniquePtrTrivialAbi.html
71+
-#if defined(__clang__) && __has_attribute(trivial_abi)
72+
+#if defined(__clang__)
73+
+#if defined(__has_attribute)
74+
+#if __has_attribute(trivial_abi)
75+
#define TRIVIAL_ABI [[clang::trivial_abi]]
76+
+#endif
77+
+#endif
78+
#else
79+
#define TRIVIAL_ABI
80+
#endif
81+
@@ -401,8 +413,12 @@ inline constexpr bool AnalyzerAssumeTrue(bool arg) {
82+
// Marks a member function as reinitializing a moved-from variable.
83+
// See also
84+
// https://clang.llvm.org/extra/clang-tidy/checks/bugprone-use-after-move.html#reinitialization
85+
-#if defined(__clang__) && __has_attribute(reinitializes)
86+
+#if defined(__clang__)
87+
+#if defined(__has_attribute)
88+
+#if __has_attribute(reinitializes)
89+
#define REINITIALIZES_AFTER_MOVE [[clang::reinitializes]]
90+
+#endif
91+
+#endif
92+
#else
93+
#define REINITIALIZES_AFTER_MOVE
94+
#endif
5395

5496
# TODO(dio): Consider to remove the following patch when we have IDN-free optional build for URL
5597
# library from the upstream Chromium project. This is tracked in:
5698
# https://github.com/envoyproxy/envoy/issues/14743.
5799

58100
diff --git a/url/BUILD b/url/BUILD
59-
index f2ec8da..4e2d55b 100644
101+
index f2ec8da..951039b 100644
60102
--- a/url/BUILD
61103
+++ b/url/BUILD
62104
@@ -52,3 +52,27 @@ cc_library(

bazel/repository_locations.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -821,13 +821,13 @@ REPOSITORY_LOCATIONS_SPEC = dict(
821821
project_name = "Chrome URL parsing library",
822822
project_desc = "Chrome URL parsing library",
823823
project_url = "https://quiche.googlesource.com/googleurl",
824-
# Static snapshot of https://quiche.googlesource.com/quiche/+archive/ef0d23689e240e6c8de4c3a5296b209128c87373.tar.gz.
825-
version = "ef0d23689e240e6c8de4c3a5296b209128c87373",
826-
sha256 = "d769283fed1319bca68bae8bdd47fbc3a7933999329eee850eff1f1ea61ce176",
824+
# Static snapshot of https://quiche.googlesource.com/quiche/+archive/561705e0066ff11e6cb97b8092f1547835beeb92.tar.gz.
825+
version = "561705e0066ff11e6cb97b8092f1547835beeb92",
826+
sha256 = "7ce00768fea1fa4c7bf658942f13e41c9ba30e9cff931a6cda2f9fd02289f673",
827827
urls = ["https://storage.googleapis.com/quiche-envoy-integration/googleurl_{version}.tar.gz"],
828828
use_category = ["controlplane", "dataplane_core"],
829829
extensions = [],
830-
release_date = "2020-07-30",
830+
release_date = "2021-08-31",
831831
cpe = "N/A",
832832
),
833833
com_google_cel_cpp = dict(
361 KB
Binary file not shown.

0 commit comments

Comments
 (0)