aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-08-28 12:20:00 -0700
committerJussi Pakkanen <jpakkane@gmail.com>2019-08-28 22:20:00 +0300
commitba4324ab9ddb883c145f74f5cbe7efc99b29e336 (patch)
treedf667bca3e844f41df5ebc646c1be868c8f95cdc /mesonbuild/compilers
parent4143c7bceb0025d9b20d3bcbf2f7d04eb5e0f0ce (diff)
downloadmeson-ba4324ab9ddb883c145f74f5cbe7efc99b29e336.zip
meson-ba4324ab9ddb883c145f74f5cbe7efc99b29e336.tar.gz
meson-ba4324ab9ddb883c145f74f5cbe7efc99b29e336.tar.bz2
Fix gcc include dot
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/mixins/gnu.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/compilers/mixins/gnu.py b/mesonbuild/compilers/mixins/gnu.py
index 757dc65..d4318b6 100644
--- a/mesonbuild/compilers/mixins/gnu.py
+++ b/mesonbuild/compilers/mixins/gnu.py
@@ -286,6 +286,8 @@ class GnuLikeCompiler(metaclass=abc.ABCMeta):
return ['-c']
def get_include_args(self, path: str, is_system: bool) -> typing.List[str]:
+ if not path:
+ path = '.'
if is_system:
return ['-isystem' + path]
return ['-I' + path]