Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-72492

Precompiled headers doesn't work (Clang + Android)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.12.0
    • Build System
    • None
    • All

      Using precompiled headers by adding:

      CONFIG += precompile_header 
      PRECOMPILED_HEADER = pch.h

      to the .pro file fails when compiling with Clang (for Android). A totally wrong '-include' directive is added to the clang++ command line. It actually contains project's name instead of the precompiled header file name (as highlighted blue in the picture below):


       

        1. image-2018-12-12-00-29-39-643.png
          58 kB
          Ray Gray
        2. PchBugProject.zip
          2 kB
          Ray Gray
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            buddenha Oswald Buddenhagen
            rayx Ray Gray
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes