diff options
author | mid-kid <esteve.varela@gmail.com> | 2024-09-29 09:25:59 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2024-09-29 21:32:50 +0300 |
commit | 3f135284c7d830fd5b7c7c8061dca227c87326a4 (patch) | |
tree | b98147b4082a4ed86b54c87d7076d86332ff06cb | |
parent | 790c43debe884ddd9fea4f73e6da4b0cc07fe934 (diff) | |
download | meson-3f135284c7d830fd5b7c7c8061dca227c87326a4.zip meson-3f135284c7d830fd5b7c7c8061dca227c87326a4.tar.gz meson-3f135284c7d830fd5b7c7c8061dca227c87326a4.tar.bz2 |
metrowerks: Fix compute_parameters_with_absolute_paths
-rw-r--r-- | mesonbuild/compilers/mixins/metrowerks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/mixins/metrowerks.py b/mesonbuild/compilers/mixins/metrowerks.py index 8934e83..561b50c 100644 --- a/mesonbuild/compilers/mixins/metrowerks.py +++ b/mesonbuild/compilers/mixins/metrowerks.py @@ -275,6 +275,6 @@ class MetrowerksCompiler(Compiler): def compute_parameters_with_absolute_paths(self, parameter_list: T.List[str], build_dir: str) -> T.List[str]: for idx, i in enumerate(parameter_list): if i[:2] == '-I': - parameter_list[idx] = i[:9] + os.path.normpath(os.path.join(build_dir, i[9:])) + parameter_list[idx] = i[:2] + os.path.normpath(os.path.join(build_dir, i[2:])) return parameter_list |