<reponame>ADVAN-ELAA-34207421/external_libcxx<filename>test/libcxx/android/build.py
import os
import subprocess


def mm(path, android_build_top):
    env = os.environ
    env['ONE_SHOT_MAKEFILE'] = os.path.join(path, 'Android.mk')

    cmd = [
        'make', '-C', android_build_top, '-f', 'build/core/main.mk',
        'all_modules', '-B'
    ]
    return not subprocess.Popen(cmd, stdout=None, stderr=None, env=env).wait()

import os
import subprocess


def mm(path, android_build_top):
    env = os.environ
    env['ONE_SHOT_MAKEFILE'] = os.path.join(path, 'Android.mk')

    cmd = [
        'make', '-C', android_build_top, '-f', 'build/core/main.mk',
        'all_modules', '-B'
    ]
    return not subprocess.Popen(cmd, stdout=None, stderr=None, env=env).wait()