diff --git a/eclass/bazel.eclass b/eclass/bazel.eclass index ac7ca241519c0..9e09255fd66fb 100644 --- a/eclass/bazel.eclass +++ b/eclass/bazel.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: bazel.eclass @@ -117,6 +117,8 @@ bazel_setup_bazelrc() { EOF if tc-is-cross-compiler; then + echo "build --distinct_host_configuration" >> "${T}/bazelrc" || die + else echo "build --nodistinct_host_configuration" >> "${T}/bazelrc" || die fi }