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/d.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/d.py')
-rw-r--r-- | mesonbuild/compilers/d.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py index a3e3369..3065ac7 100644 --- a/mesonbuild/compilers/d.py +++ b/mesonbuild/compilers/d.py @@ -115,6 +115,12 @@ class DCompiler(Compiler): for idx, i in enumerate(parameter_list): if i[:3] == '-I=': parameter_list[idx] = i[:3] + os.path.normpath(os.path.join(build_dir, i[3:])) + if i[:4] == '-L-L': + parameter_list[idx] = i[:4] + os.path.normpath(os.path.join(build_dir, i[4:])) + if i[:5] == '-L=-L': + parameter_list[idx] = i[:5] + os.path.normpath(os.path.join(build_dir, i[5:])) + if i[:6] == '-Wl,-L': + parameter_list[idx] = i[:6] + os.path.normpath(os.path.join(build_dir, i[6:])) return parameter_list @@ -520,7 +526,7 @@ class GnuDCompiler(DCompiler): def compute_parameters_with_absolute_paths(self, parameter_list, build_dir): for idx, i in enumerate(parameter_list): - if i[:2] == '-I': + if i[:2] == '-I' or i[:2] == '-L': parameter_list[idx] = i[:2] + os.path.normpath(os.path.join(build_dir, i[2:])) return parameter_list |