mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-27 15:40:32 +00:00
Support specify ABI for clippy
This commit is contained in:
6
build.py
6
build.py
@@ -529,7 +529,10 @@ def gen_ide():
|
|||||||
def clippy_cli():
|
def clippy_cli():
|
||||||
ensure_toolchain()
|
ensure_toolchain()
|
||||||
args.force_out = True
|
args.force_out = True
|
||||||
set_archs(default_archs)
|
if args.abi:
|
||||||
|
set_archs({args.abi})
|
||||||
|
else:
|
||||||
|
set_archs(default_archs)
|
||||||
|
|
||||||
os.chdir(Path("native", "src"))
|
os.chdir(Path("native", "src"))
|
||||||
cmds = ["clippy", "--no-deps", "--target"]
|
cmds = ["clippy", "--no-deps", "--target"]
|
||||||
@@ -836,6 +839,7 @@ def parse_args():
|
|||||||
cargo_parser.add_argument("commands", nargs=argparse.REMAINDER)
|
cargo_parser.add_argument("commands", nargs=argparse.REMAINDER)
|
||||||
|
|
||||||
clippy_parser = subparsers.add_parser("clippy", help="run clippy on Rust sources")
|
clippy_parser = subparsers.add_parser("clippy", help="run clippy on Rust sources")
|
||||||
|
clippy_parser.add_argument("--abi", help="target ABI to generate")
|
||||||
|
|
||||||
rustup_parser = subparsers.add_parser("rustup", help="setup rustup wrapper")
|
rustup_parser = subparsers.add_parser("rustup", help="setup rustup wrapper")
|
||||||
rustup_parser.add_argument(
|
rustup_parser.add_argument(
|
||||||
|
|||||||
Reference in New Issue
Block a user