From 91ca3e2d58b2b53d8c907abddc5a246a8e8b9051 Mon Sep 17 00:00:00 2001 From: Tobias Pankrath Date: Sat, 29 Jan 2022 18:37:52 +0100 Subject: dlang: fix #9250 invalid include flag for root directory --- mesonbuild/compilers/d.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py index bae293e..d94df4b 100644 --- a/mesonbuild/compilers/d.py +++ b/mesonbuild/compilers/d.py @@ -105,6 +105,8 @@ class DmdLikeCompilerMixin(CompilerMixinBase): return ['-of=' + outputname] def get_include_args(self, path: str, is_system: bool) -> T.List[str]: + if path == "": + path = "." return ['-I=' + path] def compute_parameters_with_absolute_paths(self, parameter_list: T.List[str], -- cgit v1.1