diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2018-12-30 23:28:28 +0100 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-01-06 12:19:33 +0100 |
commit | 9eca2e46a05870065e3cfa88ae42362d81aa3157 (patch) | |
tree | d0b77c80340be278838094daf6439d4e36949d49 /mesonbuild/compilers/rust.py | |
parent | bd8bad46c3fad6e53e259f73408a73eeca920dc7 (diff) | |
download | meson-9eca2e46a05870065e3cfa88ae42362d81aa3157.zip meson-9eca2e46a05870065e3cfa88ae42362d81aa3157.tar.gz meson-9eca2e46a05870065e3cfa88ae42362d81aa3157.tar.bz2 |
Added more compiler option support
Diffstat (limited to 'mesonbuild/compilers/rust.py')
-rw-r--r-- | mesonbuild/compilers/rust.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mesonbuild/compilers/rust.py b/mesonbuild/compilers/rust.py index b569566..68da823 100644 --- a/mesonbuild/compilers/rust.py +++ b/mesonbuild/compilers/rust.py @@ -84,4 +84,12 @@ class RustCompiler(Compiler): return rust_optimization_args[optimization_level] def compute_parameters_with_absolute_paths(self, parameter_list, build_dir): + for idx, i in enumerate(parameter_list): + if i[:2] == '-L': + for j in ['dependency', 'crate', 'native', 'framework', 'all']: + combined_len = len(j) + 3 + if i[:combined_len] == '-L{}='.format(j): + parameter_list[idx] = i[:combined_len] + os.path.normpath(os.path.join(build_dir, i[combined_len:])) + break + return parameter_list |