[patch]Frontend generate cxx-system-include

When using libc++, the Driver passes the no longer supported -cxx-system-include argument to -cc1.
There is an other place where -cxx-system-include may be generated in Frontend too.

If the new "-cxx-isystem" arg is a drop in replacement, the 2 attached patches should be safe, else they fix my compilation issue at least.

cxx-isys.patch is for the Driver and libc++
cxx-isys2.patch is for the Frontend.

-- Jean-Daniel

cxx-isys2.patch (458 Bytes)

cxx-isys.patch (411 Bytes)

When using libc++, the Driver passes the no longer supported
-cxx-system-include argument to -cc1.
There is an other place where -cxx-system-include may be generated in
Frontend too.

Sorry about that.

If the new "-cxx-isystem" arg is a drop in replacement, the 2 attached
patches should be safe, else they fix my compilation issue at least.

Try the attached patch. It G/Cs the rest and should fix your issue.

Joerg

isystem.diff (2.66 KB)

Works great. Thank you for the fix :slight_smile:

-- Jean-Daniel

Looks good, please go ahead and commit.

  - Doug