mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-27 12:49:09 +00:00
Support specify ABI for clippy
This commit is contained in:
4
build.py
4
build.py
@@ -529,6 +529,9 @@ def gen_ide():
|
||||
def clippy_cli():
|
||||
ensure_toolchain()
|
||||
args.force_out = True
|
||||
if args.abi:
|
||||
set_archs({args.abi})
|
||||
else:
|
||||
set_archs(default_archs)
|
||||
|
||||
os.chdir(Path("native", "src"))
|
||||
@@ -836,6 +839,7 @@ def parse_args():
|
||||
cargo_parser.add_argument("commands", nargs=argparse.REMAINDER)
|
||||
|
||||
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.add_argument(
|
||||
|
||||
Reference in New Issue
Block a user