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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes