From 5ea09f261e2358d716e40d9b743527345c9c537d Mon Sep 17 00:00:00 2001 From: AtomicGamer9523 Date: Fri, 24 Nov 2023 11:17:30 -0800 Subject: [PATCH] Now ? --- libs/l2math/bindings/build.rs | 2 ++ libs/scripts/build.py | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/libs/l2math/bindings/build.rs b/libs/l2math/bindings/build.rs index 9ff394e..3639dba 100644 --- a/libs/l2math/bindings/build.rs +++ b/libs/l2math/bindings/build.rs @@ -1,3 +1,5 @@ +#![allow(unused)] + use std::env; use std::path::{Path, PathBuf}; diff --git a/libs/scripts/build.py b/libs/scripts/build.py index 61655d8..56a0f08 100644 --- a/libs/scripts/build.py +++ b/libs/scripts/build.py @@ -4,10 +4,11 @@ def build(cd: str, args: list[str]) -> str | int | None: cmd = ["cargo", "build"] if "--android" in args: - args.remove("--android") - cmd.extend(["--target", "aarch64-linux-android"]) - cmd.extend(["--features", "__android__"]) - + args.remove("--android") # Remove the flag + cmd.extend(["--target", "aarch64-linux-android"]) # Set the target + cmd.extend(["--config", "target.aarch64-linux-android.linker='aarch64-linux-android-cc'"]) # Set the linker + cmd.extend(["--features", "__android__"]) # Set the features + cmd.extend(args) res = subprocess.run(cmd, cwd=cd) if res.returncode != 0: exit(res.returncode)