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

Precompiled header don't work with Clang 64b on Linux 64b

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 4.8.4
    • Build tools: qmake
    • None
    • Linux Ubunutu 12.04

    Description

      Create a simple hello world project ( C++ ) with .pro:

      LANGUAGE = C++
      TEMPLATE = app
      CONFIG += console precompile_header
      
      SOURCES += main.cpp
      
      HEADERS += \
          stable.h
      
      PRECOMPILED_HEADER = stable.h
      
      stable.h
      #ifndef STABLE_H
      #define STABLE_H
      #include <iostream>
      #endif // STABLE_H
      

      This will work with gcc but with clang I get:
      make: Entering directory `/home/p/git/cpp/exp/clang/helloworld-build-Desktop-Debug'
      mkdir: cannot create directory `helloworld/': File exists

      In fact, the directory should probably be helloworld.gch ( or .pch ? ) like in the Makefile generated for gcc.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              vestbo Tor Arne Vestbø
              mycircuit mycircuit
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes