mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 16:07:39 +00:00
Use separate flags for 64-bit
This commit is contained in:
parent
6a0b2ddee9
commit
6953cc2411
4
build.py
4
build.py
@ -203,7 +203,7 @@ def build_binary(args):
|
||||
base_flags += ' MAGISK_DEBUG=1'
|
||||
|
||||
if 'magisk' in args.target:
|
||||
run_ndk_build('B_MAGISK=1')
|
||||
run_ndk_build('B_MAGISK=1 B_64BIT=1')
|
||||
# Dump the binary to header
|
||||
for arch in archs:
|
||||
bin_file = os.path.join('native', 'out', arch, 'magisk')
|
||||
@ -231,7 +231,7 @@ def build_binary(args):
|
||||
run_ndk_build('B_BOOT=1')
|
||||
|
||||
if 'test' in args.target:
|
||||
run_ndk_build('B_TEST=1')
|
||||
run_ndk_build('B_TEST=1 B_64BIT=1')
|
||||
|
||||
|
||||
def build_apk(args, module):
|
||||
|
@ -10,8 +10,8 @@ ifdef MAGISK_DEBUG
|
||||
APP_CFLAGS += -D__MDBG
|
||||
endif
|
||||
|
||||
# Build 64 bit binaries for magisk
|
||||
ifdef B_MAGISK
|
||||
# Build 64 bit binaries
|
||||
ifdef B_64BIT
|
||||
APP_ABI += arm64-v8a x86_64
|
||||
endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user