From efea48788ab29c45a83f6a50d39fd7d0689f5f0e Mon Sep 17 00:00:00 2001 From: myfreeweb Date: Thu, 11 Jul 2019 00:45:06 +0300 Subject: Ignore -D* and -fstack-protector* args for D compilers Fixes #5369 --- mesonbuild/compilers/d.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mesonbuild/compilers/d.py') 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(',') -- cgit v1.1