Commit 6953cc24 authored by topjohnwu's avatar topjohnwu

Use separate flags for 64-bit

parent 6a0b2dde
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment