Просмотр исходного кода

Update things for clang-15 support. (#2174)

libprotobuf_mutator and abseil have warnings that are already fixed in newer versions.

bison outputs code that hits new warnings; there I'm just silencing it because testing a newer bison version is more difficult.

Fixes #1650

Fixes #1660
Jon Ross-Perkins 3 лет назад
Родитель
Сommit
a62e2dc21c
2 измененных файлов с 9 добавлено и 6 удалено
  1. 8 6
      WORKSPACE
  2. 1 0
      explorer/syntax/BUILD

+ 8 - 6
WORKSPACE

@@ -44,13 +44,14 @@ configure_clang_toolchain(name = "bazel_cc_toolchain")
 # Abseil libraries
 ###############################################################################
 
-abseil_version = "20211102.0"
+# Head as of 2022-09-13.
+abseil_version = "530cd52f585c9d31b2b28cea7e53915af7a878e3"
 
 http_archive(
     name = "com_google_absl",
-    sha256 = "dcf71b9cba8dc0ca9940c4b316a0c796be8fab42b070bb6b7cab62b48f0e66c4",
+    sha256 = "f8a6789514a3b109111252af92da41d6e64f90efca9fb70515d86debee57dc24",
     strip_prefix = "abseil-cpp-%s" % abseil_version,
-    urls = ["https://github.com/abseil/abseil-cpp/archive/refs/tags/%s.tar.gz" % abseil_version],
+    urls = ["https://github.com/abseil/abseil-cpp/archive/%s.tar.gz" % abseil_version],
 )
 
 ###############################################################################
@@ -212,14 +213,15 @@ rules_proto_toolchains()
 # libprotobuf_mutator - for structured fuzzer testing.
 ###############################################################################
 
-libprotobuf_mutator_version = "1.0"
+# Head as of 2022-09-13.
+libprotobuf_mutator_version = "a304ec48dcf15d942607032151f7e9ee504b5dcf"
 
 http_archive(
     name = "com_google_libprotobuf_mutator",
     build_file = "@//:third_party/libprotobuf_mutator/BUILD.txt",
-    sha256 = "792f250fb546bde8590e72d64311ea00a70c175fd77df6bb5e02328fa15fe28e",
+    sha256 = "0ce80217393fe6b01dac9818127e664801d865fefd708b98183181c0ed457878",
     strip_prefix = "libprotobuf-mutator-%s" % libprotobuf_mutator_version,
-    urls = ["https://github.com/google/libprotobuf-mutator/archive/v%s.tar.gz" % libprotobuf_mutator_version],
+    urls = ["https://github.com/google/libprotobuf-mutator/archive/%s.tar.gz" % libprotobuf_mutator_version],
 )
 
 ###############################################################################

+ 1 - 0
explorer/syntax/BUILD

@@ -71,6 +71,7 @@ cc_library(
     copts = [
         "-Wno-implicit-fallthrough",  # Needed to make yyinput() code compile.
         "-Wno-unneeded-internal-declaration",
+        "-Wno-unused-but-set-variable",
         "-Wno-unused-function",
         "-Wno-writable-strings",
     ],