From 9cfbfdc0928377bec506242fe51a76fb18c53c8b Mon Sep 17 00:00:00 2001 From: Rahul Rachuri Date: Tue, 7 Dec 2021 10:15:21 +0200 Subject: [PATCH] Apple Silicon compilation --- WORKSPACE.bazel | 2 +- dpf/tuple.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index e7c5173..f8865f5 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -48,7 +48,7 @@ load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_depe go_rules_dependencies() -go_register_toolchains(version = "1.15.5") +go_register_toolchains(version = "host") # Install gtest. http_archive( diff --git a/dpf/tuple.h b/dpf/tuple.h index a42113f..4596305 100644 --- a/dpf/tuple.h +++ b/dpf/tuple.h @@ -103,7 +103,7 @@ namespace dpf_internal { template constexpr Tuple add(const Tuple& lhs, const Tuple& rhs, std::index_sequence) { - return Tuple{std::get(lhs.value()) + std::get(rhs.value())...}; + return Tuple{T(std::get(lhs.value()) + std::get(rhs.value()))...}; } template