Fix compatibility with older macOS versions

https://forums.ankiweb.net/t/anki-2-1-50-qt5-wont-open/19091
This commit is contained in:
Damien Elmes 2022-04-15 17:35:05 +10:00
parent a9769813ba
commit 72c7d64876
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -8,6 +8,7 @@ cargo_build_script(
srcs = ["build.rs"],
build_script_env = {
"PYO3_PYTHON": "$(location @python)",
"MACOSX_DEPLOYMENT_TARGET": "10.13",
},
data = [
"@python",