Upgrade WPILib and upgraded compilers to C++17
I haven't touched the CTRE libraries yet, although they may need to be
upgraded as well.
Note that this change makes it so that you need either Ubuntu 18.04 or
later or debian buster or later in order to build the code (you may be
able to build code for the roborio on older operating systems, but
running the tests will not work normally).
Change-Id: I0cfa37fe37f830edde6d305e1f50414c369098e4
diff --git a/third_party/ceres/BUILD b/third_party/ceres/BUILD
index 2a4028a..53e7c93 100644
--- a/third_party/ceres/BUILD
+++ b/third_party/ceres/BUILD
@@ -36,6 +36,10 @@
ceres_library(
name = "ceres",
+ extra_copts = cpu_select({
+ "roborio": ["-Wno-maybe-uninitialized"],
+ "else": [],
+ }),
restrict_schur_specializations = False,
)
diff --git a/third_party/ceres/bazel/ceres.bzl b/third_party/ceres/bazel/ceres.bzl
index d99046a..b33aeb3 100644
--- a/third_party/ceres/bazel/ceres.bzl
+++ b/third_party/ceres/bazel/ceres.bzl
@@ -138,6 +138,7 @@
# See https://github.com/ceres-solver/ceres-solver/issues/335.
def ceres_library(name,
restrict_schur_specializations=False,
+ extra_copts=[],
gflags_namespace="gflags"):
# The path to internal/ depends on whether Ceres is the main workspace or
# an external repository.
@@ -186,7 +187,7 @@
"-Wno-ignored-qualifiers",
"-Wno-unused-parameter",
"-Wno-format-nonliteral",
- ] + schur_eliminator_copts,
+ ] + schur_eliminator_copts + extra_copts,
# These include directories and defines are propagated to other targets
# depending on Ceres.