Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-430

"build single file" must build dependencies of the file to be built

    XMLWordPrintable

Details

    • edd7442969565de683b9a0cdf548b13fc8f17b3d

    Description

      I have already reported few bugs related to precompiled header support, but still qbs fails to build super simple application with precompiled header:

      Product {
          Depends { name: 'cpp' }
      
          name: 'Test'
          type: 'application'
      
          files: ['main.cpp', 'pch.h']
          cpp.cxxPrecompiledHeader: 'pch.h'
      }
      

      Build -> Build File "main.cpp". Output:

      compiling main.cpp
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -m64 -g -Wall -Wextra -pipe -fvisibility=default -x c++ -include /Volumes/DATA/iProject/Test/Test-build/qtc_Mac-debug/Test_cpp -fPIC -c /Volumes/DATA/iProject/Test/main.cpp -o /Volumes/DATA/iProject/Test/Test-build/qtc_Mac-debug/.obj/Test/main.cpp.o
      In file included from <built-in>:167:
      <command line>:1:10: fatal error: '/Volumes/DATA/iProject/Test/Test-build/qtc_Mac-debug/Test_cpp' file not found
      #include "/Volumes/DATA/iProject/Test/Test-build/qtc_Mac-debug/Test_cpp"
      

      Build -> Build Project "Test" or Rebuild All gives same output.
      Close QtCreator, open again, Build -> Build Project "Test". Build Success all of the sudden.
      Ok then, add few strings to pch.h, save, Build -> Build Files "main.cpp". Output:

      fatal error: file '/Volumes/DATA/iProject/Test/pch.h' has been modified since the precompiled header '/Volumes/DATA/iProject/Test/Test-build/qtc_Mac-debug/Test_cpp.gch' was built
      

      Build -> Build Project "Test" - same thing.

      Rebuild All: fatal error: '/Volumes/DATA/iProject/Test/Test-build/qtc_Mac-debug/Test_cpp' file not found
      

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            shiftz Andrew Shevchenko
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes