Call correct strip for arm target

This commit is contained in:
Cheng Zhao 2015-07-02 07:19:39 +00:00
parent c76d87719d
commit 8110f2f221

View file

@ -129,9 +129,13 @@ def copy_license():
def strip_binaries(): def strip_binaries():
if get_target_arch() == 'arm':
strip = 'arm-linux-gnueabihf-strip'
else:
strip = 'strip'
for binary in TARGET_BINARIES[PLATFORM]: for binary in TARGET_BINARIES[PLATFORM]:
if binary.endswith('.so') or '.' not in binary: if binary.endswith('.so') or '.' not in binary:
execute(['strip', os.path.join(DIST_DIR, binary)]) execute([strip, os.path.join(DIST_DIR, binary)])
def copy_system_libraries(): def copy_system_libraries():