Jemalloc no longer seems to fail in cross-compile builds

This commit is contained in:
Damien Elmes 2023-11-02 19:56:08 +10:00
parent 373a63f610
commit b4c9e54347
2 changed files with 1 additions and 4 deletions

View file

@ -12,7 +12,7 @@ use crate::run::run_command;
pub fn build_bundle_binary() {
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");
}

View file

@ -130,9 +130,6 @@ def make_exe():
# detected libs do not need this, but we add extra afterwards
python_config.module_search_paths = ["$ORIGIN/lib"]
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()"