diff --git a/.bazelrc b/.bazelrc index 81430cc64..872241350 100644 --- a/.bazelrc +++ b/.bazelrc @@ -10,6 +10,10 @@ build:windows --build_python_zip=false # record version/build hash build --workspace_status_command='bash ./tools/status.sh' +# support macOS 10.13+ +build:macos --action_env="MACOSX_DEPLOYMENT_TARGET=10.13" +build:macos --macos_minimum_os=10.13 + # run clippy when compiling rust in test mode test --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect --output_groups=+clippy_checks diff --git a/pylib/rsbridge/BUILD.bazel b/pylib/rsbridge/BUILD.bazel index 6c2b6856b..97b27109a 100644 --- a/pylib/rsbridge/BUILD.bazel +++ b/pylib/rsbridge/BUILD.bazel @@ -8,6 +8,7 @@ cargo_build_script( srcs = ["build.rs"], build_script_env = { "PYO3_PYTHON": "$(location @python)", + "MACOSX_DEPLOYMENT_TARGET": "10.13", }, data = [ "@python",