aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/d.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-10-06 17:33:12 +0300
committerGitHub <noreply@github.com>2019-10-06 17:33:12 +0300
commit51fef880b6a12e82955d5b93df7ffed0ae2f1478 (patch)
tree327575ae53cc7e25389ee6af1a02861c8296b9ad /mesonbuild/compilers/d.py
parent5bbea6be05c9740aedcd7f170c24a6b2c098cd01 (diff)
parent47e20b3004b41261c01b1a46898252924f031f1d (diff)
downloadmeson-51fef880b6a12e82955d5b93df7ffed0ae2f1478.zip
meson-51fef880b6a12e82955d5b93df7ffed0ae2f1478.tar.gz
meson-51fef880b6a12e82955d5b93df7ffed0ae2f1478.tar.bz2
Merge pull request #5953 from mensinda/isystem
Add is_system to dependency
Diffstat (limited to 'mesonbuild/compilers/d.py')
-rw-r--r--mesonbuild/compilers/d.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py
index 5e0c173..346f18e 100644
--- a/mesonbuild/compilers/d.py
+++ b/mesonbuild/compilers/d.py
@@ -285,7 +285,14 @@ class DmdLikeCompilerMixin:
if arg.startswith('-isystem='):
dcargs.append('-I=' + arg[9:])
else:
- dcargs.append('-I')
+ dcargs.append('-I' + arg[8:])
+ continue
+ elif arg.startswith('-idirafter'):
+ # same as -isystem, but appends the path instead
+ if arg.startswith('-idirafter='):
+ dcargs.append('-I=' + arg[11:])
+ else:
+ dcargs.append('-I' + arg[10:])
continue
elif arg.startswith('-L/') or arg.startswith('-L./'):
# we need to handle cases where -L is set by e.g. a pkg-config