mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Fix compatibility with older macOS versions
https://forums.ankiweb.net/t/anki-2-1-50-qt5-wont-open/19091
This commit is contained in:
parent
a9769813ba
commit
72c7d64876
2 changed files with 5 additions and 0 deletions
4
.bazelrc
4
.bazelrc
|
@ -10,6 +10,10 @@ build:windows --build_python_zip=false
|
||||||
# record version/build hash
|
# record version/build hash
|
||||||
build --workspace_status_command='bash ./tools/status.sh'
|
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
|
# run clippy when compiling rust in test mode
|
||||||
test --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect --output_groups=+clippy_checks
|
test --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect --output_groups=+clippy_checks
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ cargo_build_script(
|
||||||
srcs = ["build.rs"],
|
srcs = ["build.rs"],
|
||||||
build_script_env = {
|
build_script_env = {
|
||||||
"PYO3_PYTHON": "$(location @python)",
|
"PYO3_PYTHON": "$(location @python)",
|
||||||
|
"MACOSX_DEPLOYMENT_TARGET": "10.13",
|
||||||
},
|
},
|
||||||
data = [
|
data = [
|
||||||
"@python",
|
"@python",
|
||||||
|
|
Loading…
Reference in a new issue