Skip to content

Commit

Permalink
Now ?
Browse files Browse the repository at this point in the history
  • Loading branch information
AtomicGamer9523 committed Nov 24, 2023
1 parent 5279fd7 commit 5ea09f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions libs/l2math/bindings/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unused)]

use std::env;
use std::path::{Path, PathBuf};

Expand Down
9 changes: 5 additions & 4 deletions libs/scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 5ea09f2

Please sign in to comment.