diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-06-12 21:26:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-12 21:26:09 +0300 |
commit | 1944a7a66d594b60eea32f76e049810d8adb0ed5 (patch) | |
tree | 104481bbbb8e1661718a1492f7b5ef0ffa88c6da /mesonbuild/compilers.py | |
parent | da64da3617f5327e4db866daf77668477ddb5e77 (diff) | |
parent | 1865425b4bbf87f9198353dd730de748680d3979 (diff) | |
download | meson-1944a7a66d594b60eea32f76e049810d8adb0ed5.zip meson-1944a7a66d594b60eea32f76e049810d8adb0ed5.tar.gz meson-1944a7a66d594b60eea32f76e049810d8adb0ed5.tar.bz2 |
Merge pull request #1932 from centricular/fix-libpath-reordering
Preserve -L -l pairings fetched from external deps
Diffstat (limited to 'mesonbuild/compilers.py')
-rw-r--r-- | mesonbuild/compilers.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index 80d12a0..2b54cc8 100644 --- a/mesonbuild/compilers.py +++ b/mesonbuild/compilers.py @@ -465,6 +465,19 @@ class CompilerArgs(list): self.insert(i + 1, '-Wl,--end-group') return self.compiler.unix_args_to_native(self) + def append_direct(self, arg): + ''' + Append the specified argument without any reordering or de-dup + ''' + super().append(arg) + + def extend_direct(self, iterable): + ''' + Extend using the elements in the specified iterable without any + reordering or de-dup + ''' + super().extend(iterable) + def __add__(self, args): new = CompilerArgs(self, self.compiler) new += args |