diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-02-26 14:18:57 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-02-27 16:49:32 -0500 |
| commit | b9274681375b39d4b63f8ece1ced6dcf18789a4f (patch) | |
| tree | 08eaaea7fd6c6409d8562e047a279de22416bc1b /mesonbuild/environment.py | |
| parent | 92d18b925679f2c889bf248fa23d6611968203f4 (diff) | |
| download | meson-b9274681375b39d4b63f8ece1ced6dcf18789a4f.tar.gz | |
Use cross stripper when cross compiling and allow overriding native strip executable. Closes #1414.
Diffstat (limited to 'mesonbuild/environment.py')
| -rw-r--r-- | mesonbuild/environment.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 4bdc4dfaa..521762659 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -261,6 +261,10 @@ class Environment: self.exe_suffix = '' self.object_suffix = 'o' self.win_libdir_layout = False + if 'STRIP' in os.environ: + self.native_strip_bin = shlex.split('STRIP') + else: + self.native_strip_bin = ['strip'] def is_cross_build(self): return self.cross_info is not None |
