mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Jemalloc no longer seems to fail in cross-compile builds
This commit is contained in:
parent
373a63f610
commit
b4c9e54347
2 changed files with 1 additions and 4 deletions
|
@ -12,7 +12,7 @@ use crate::run::run_command;
|
||||||
|
|
||||||
pub fn build_bundle_binary() {
|
pub fn build_bundle_binary() {
|
||||||
let mut features = String::from("build-mode-prebuilt-artifacts");
|
let mut features = String::from("build-mode-prebuilt-artifacts");
|
||||||
if cfg!(target_os = "linux") || (cfg!(target_os = "macos") && cfg!(target_arch = "aarch64")) {
|
if cfg!(target_os = "linux") || cfg!(target_os = "macos") {
|
||||||
features.push_str(",global-allocator-jemalloc,allocator-jemalloc");
|
features.push_str(",global-allocator-jemalloc,allocator-jemalloc");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -130,9 +130,6 @@ def make_exe():
|
||||||
# detected libs do not need this, but we add extra afterwards
|
# detected libs do not need this, but we add extra afterwards
|
||||||
python_config.module_search_paths = ["$ORIGIN/lib"]
|
python_config.module_search_paths = ["$ORIGIN/lib"]
|
||||||
python_config.optimization_level = 2
|
python_config.optimization_level = 2
|
||||||
if BUILD_TARGET_TRIPLE == "x86_64-apple-darwin":
|
|
||||||
# jemalloc currently fails to build when run under Rosetta
|
|
||||||
python_config.allocator_backend = "default"
|
|
||||||
|
|
||||||
python_config.run_command = "import aqt; aqt.run()"
|
python_config.run_command = "import aqt; aqt.run()"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue