Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8220141

Disable libclang host environment inference in macro reparsing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • repo-panama
    • repo-panama
    • tools

      Libclang always attempts to infer host environment variables, such as standard includes and standard libraries paths. This can cause inconsistencies when reparsing macro snippets, and in efficiencies, as libclang picks up more headers than it should.

      A way to disable this behavior is to pass the "-Xnostdinc" option to the reparse unit.

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: