Skip to content

Commit efea487

Browse files
valpackettjpakkane
authored andcommitted
Ignore -D* and -fstack-protector* args for D compilers
Fixes mesonbuild#5369
1 parent 5bd21a9 commit efea487

File tree

1 file changed

+4
-0
lines changed
  • mesonbuild/compilers

1 file changed

+4
-0
lines changed

mesonbuild/compilers/d.py

+4
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,10 @@ def translate_args_to_nongnu(cls, args):
356356
# Translate common D arguments here.
357357
if arg == '-pthread':
358358
continue
359+
if arg.startswith('-fstack-protector'):
360+
continue
361+
if arg.startswith('-D'):
362+
continue
359363
if arg.startswith('-Wl,'):
360364
# Translate linker arguments here.
361365
linkargs = arg[arg.index(',') + 1:].split(',')

0 commit comments

Comments
 (0)