summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Pankrath <tobias@pankrath.net>2022-01-29 18:37:52 +0100
committerDylan Baker <dylan@pnwbakers.com>2022-02-06 14:16:51 -0800
commit91ca3e2d58b2b53d8c907abddc5a246a8e8b9051 (patch)
treec18dcd8428a1479043b967b2298484f7b34d6347
parenta57d6fa51b63178f5762d2aabb446a19a393c8bc (diff)
downloadmeson-91ca3e2d58b2b53d8c907abddc5a246a8e8b9051.tar.gz
dlang: fix #9250 invalid include flag for root directory
-rw-r--r--mesonbuild/compilers/d.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py
index bae293e1b..d94df4b10 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],