From b9274681375b39d4b63f8ece1ced6dcf18789a4f Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 26 Feb 2017 14:18:57 +0200 Subject: Use cross stripper when cross compiling and allow overriding native strip executable. Closes #1414. --- mesonbuild/scripts/meson_install.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mesonbuild/scripts') diff --git a/mesonbuild/scripts/meson_install.py b/mesonbuild/scripts/meson_install.py index 2ffc505..a025b0c 100644 --- a/mesonbuild/scripts/meson_install.py +++ b/mesonbuild/scripts/meson_install.py @@ -236,12 +236,12 @@ def install_targets(d): raise RuntimeError('File {!r} could not be found'.format(fname)) elif os.path.isfile(fname): do_copyfile(fname, outname) - if should_strip: + if should_strip and d.strip_bin is not None: if fname.endswith('.jar'): print('Not stripping jar target:', os.path.split(fname)[1]) continue print('Stripping target {!r}'.format(fname)) - ps, stdo, stde = Popen_safe(['strip', outname]) + ps, stdo, stde = Popen_safe(d.strip_bin + [outname]) if ps.returncode != 0: print('Could not strip file.\n') print('Stdout:\n%s\n' % stdo) -- cgit v1.1