Conditionally use matplotlib for distance_spline_test
This lets us build and run the test on ARM
Change-Id: Ia53a5607c092df2cc3c9d9b947842af56b0401b7
diff --git a/frc971/control_loops/drivetrain/BUILD b/frc971/control_loops/drivetrain/BUILD
index 9bb335c..7e78c72 100644
--- a/frc971/control_loops/drivetrain/BUILD
+++ b/frc971/control_loops/drivetrain/BUILD
@@ -298,13 +298,24 @@
srcs = [
"distance_spline_test.cc",
],
- restricted_to = ["//tools:k8"],
+ defines =
+ cpu_select({
+ "amd64": [
+ "SUPPORT_PLOT=1",
+ ],
+ "arm": [],
+ }),
+ linkstatic = True,
deps = [
":distance_spline",
"//aos/testing:googletest",
- "//third_party/matplotlib-cpp",
"@com_github_gflags_gflags//:gflags",
- ],
+ ] + cpu_select({
+ "amd64": [
+ "//third_party/matplotlib-cpp",
+ ],
+ "arm": [],
+ }),
)
cc_library(