aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authormyfreeweb <greg@unrelenting.technology>2019-07-11 00:45:06 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2019-07-11 22:32:39 +0300
commitefea48788ab29c45a83f6a50d39fd7d0689f5f0e (patch)
treefa4dfd09e2db3a6c30a17826ea4e0b002babf31a /mesonbuild
parent5bd21a96b89efc5fe96025398151dcbce34345ac (diff)
downloadmeson-efea48788ab29c45a83f6a50d39fd7d0689f5f0e.zip
meson-efea48788ab29c45a83f6a50d39fd7d0689f5f0e.tar.gz
meson-efea48788ab29c45a83f6a50d39fd7d0689f5f0e.tar.bz2
Ignore -D* and -fstack-protector* args for D compilers
Fixes #5369
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/compilers/d.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py
index b7bc49a..9d9863b 100644
--- a/mesonbuild/compilers/d.py
+++ b/mesonbuild/compilers/d.py
@@ -356,6 +356,10 @@ class DCompiler(Compiler):
# Translate common D arguments here.
if arg == '-pthread':
continue
+ if arg.startswith('-fstack-protector'):
+ continue
+ if arg.startswith('-D'):
+ continue
if arg.startswith('-Wl,'):
# Translate linker arguments here.
linkargs = arg[arg.index(',') + 1:].split(',')