d: Translate the -isystem flag for LDC and DMD

pull/4950/head
Matthias Klumpp 6 years ago committed by Jussi Pakkanen
parent 51dadb92d0
commit 2cede4d6c9
  1. 11
      mesonbuild/compilers/d.py

@ -380,6 +380,17 @@ class DCompiler(Compiler):
# translate library link flag
dcargs.append('-L=' + arg)
continue
elif arg.startswith('-isystem'):
# translate -isystem system include path
# this flag might sometimes be added by C library Cflags via
# pkg-config.
# NOTE: -isystem and -I are not 100% equivalent, so this is just
# a workaround for the most common cases.
if arg.startswith('-isystem='):
dcargs.append('-I=' + arg[9:])
else:
dcargs.append('-I')
continue
elif arg.startswith('-L/') or arg.startswith('-L./'):
# we need to handle cases where -L is set by e.g. a pkg-config
# setting to select a linker search path. We can however not

Loading…
Cancel
Save