From 2c3afa7cec2fe055cefbeb6832c1a9768ca87559 Mon Sep 17 00:00:00 2001 From: pybind11_abseil authors Date: Tue, 20 Feb 2024 12:42:27 -0800 Subject: [PATCH] Adopted https://github.com/pybind/pybind11_abseil/pull/17 PiperOrigin-RevId: 608701939 --- pybind11_abseil/BUILD | 3 +-- scripts/build_and_run_tests_bazel.sh | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pybind11_abseil/BUILD b/pybind11_abseil/BUILD index 791c245..dd34f0f 100644 --- a/pybind11_abseil/BUILD +++ b/pybind11_abseil/BUILD @@ -1,8 +1,7 @@ # Pybind11 bindings for the Abseil C++ Common Libraries -# Placeholder: load py_extension # Placeholder: load py_library -load("@pybind11_bazel//:build_defs.bzl", "pybind_extension", "pybind_library") +load("@pybind11_bazel//:build_defs.bzl", "pybind_library") package( default_visibility = ["//visibility:public"], diff --git a/scripts/build_and_run_tests_bazel.sh b/scripts/build_and_run_tests_bazel.sh index 5e7b8c4..93bfd9d 100755 --- a/scripts/build_and_run_tests_bazel.sh +++ b/scripts/build_and_run_tests_bazel.sh @@ -26,6 +26,8 @@ export PYTHON_LIB_PATH=`python3 -c "import sysconfig; print(sysconfig.get_path(' echo "Using PYTHON_BIN_PATH: $PYTHON_BIN_PATH" echo "Using PYTHON_LIB_PATH: $PYTHON_LIB_PATH" +bazel clean --expunge + BAZEL_CXXOPTS="-std=c++17" bazel test ... --test_output=errors "$@" --enable_bzlmod BAZEL_CXXOPTS="-std=c++20" bazel test ... --test_output=errors "$@" --enable_bzlmod