diff options
author | myfreeweb <greg@unrelenting.technology> | 2019-07-11 00:45:06 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-07-11 22:32:39 +0300 |
commit | efea48788ab29c45a83f6a50d39fd7d0689f5f0e (patch) | |
tree | fa4dfd09e2db3a6c30a17826ea4e0b002babf31a | |
parent | 5bd21a96b89efc5fe96025398151dcbce34345ac (diff) | |
download | meson-efea48788ab29c45a83f6a50d39fd7d0689f5f0e.zip meson-efea48788ab29c45a83f6a50d39fd7d0689f5f0e.tar.gz meson-efea48788ab29c45a83f6a50d39fd7d0689f5f0e.tar.bz2 |
Ignore -D* and -fstack-protector* args for D compilers
Fixes #5369
-rw-r--r-- | mesonbuild/compilers/d.py | 4 |
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(',') |