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

command lines generated by qbs get very long when nested Depends adds the same parameters

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 1.16.0
    • General
    • None
    • 9c518238b6524716b4cf8b0f5d4fc6f53c6a784a (qbs/qbs/master)

    Description

      When looking at the command lines run by qbs when building my cpp project i find out that certain parameters are repeated for every Depends item encountered in the project hierachy.

      (Qt core, etc.)

      Especially on windows that can lead to severe problems as the command line length is limited there.

      Please look at the command line executed for a unit test (i inserted a new line at each -):

      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
       -Wl,-arch,x86_64,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk,-rpath,/Users/developer/git/build/Desktop_Qt_5_15_0_clang_64bit/bee/Debug_Desktop_a537e945e15d7717/install-root/lib,-rpath,/Users/developer/Qt/5.15.0/clang_64/lib,-rpath,/Users/developer/git/build/Desktop_Qt_5_15_0_clang_64bit/bee/Debug_Desktop_a537e945e15d7717/install-root/lib
       -sectcreate _TEXT __info_plist /Users/developer/git/build/Desktop_Qt_5_15_0_clang_64bit/bee/Debug_Desktop_a537e945e15d7717/ServiceCallRunnerTester.25f77040/ServiceCallRunnerTester-Info.plist
       -stdlib=libc++
       -L/Users/developer/Qt/5.15.0/clang_64/lib
       -fsanitize=address
       -target x86_64-apple-macosx10.13-macho
       -F/Users/developer/Qt/5.15.0/clang_64/lib
       -F/Users/developer/Qt/5.15.0/clang_64/lib
       -F/Users/developer/Qt/5.15.0/clang_64/lib
       -F/Users/developer/Qt/5.15.0/clang_64/lib
       -F/Users/developer/Qt/5.15.0/clang_64/lib
       -F/Users/developer/Qt/5.15.0/clang_64/lib
       -o /Users/developer/git/build/Desktop_Qt_5_15_0_clang_64bit/bee/Debug_Desktop_a537e945e15d7717/ServiceCallRunnerTester.25f77040/ServiceCallRunnerTester_debug /Users/developer/git/build/Desktop_Qt_5_15_0_clang_64bit/bee/Debug_Desktop_a537e945e15d7717/ServiceCallRunnerTester.25f77040/3a52ce780950d4d9/ServiceCallRunnerTester.cpp.o
       -framework QtNetwork
       -framework QtCore
       -framework DiskArbitration
       -framework IOKit
       -framework QtXmlPatterns
       -framework Security
       -framework Foundation
       -framework ApplicationServices
       -framework AppKit
       -framework QtCore
       -framework DiskArbitration
       -framework IOKit
       -framework QtTest
       -framework QtCore
       -framework DiskArbitration
       -framework IOKit
       -framework QtSql
       -framework QtCore
       -framework DiskArbitration
       -framework IOKit
       -framework QtNetwork
       -framework QtCore
       -framework DiskArbitration
       -framework IOKit
       -framework QtConcurrent
       -framework DiskArbitration
       -framework IOKit
       -framework QtCore /Users/developer/git/build/Desktop_Qt_5_15_0_clang_64bit/bee/Debug_Desktop_a537e945e15d7717/MockNetworkAccessManager.f6b1c21c/libMockNetworkAccessManager.a /Users/developer/git/build/Desktop_Qt_5_15_0_clang_64bit/bee/Debug_Desktopa537e945e15d7717/SystemClient.006c1db0/.tmp/SystemClient /Users/developer/git/build/Desktop_Qt_5_15_0_clang_64bit/bee/Debug_Desktopa537e945e15d7717/libFEAST.4492505c/.tmp/FEAST /Users/developer/git/build/Desktop_Qt_5_15_0_clang_64bit/bee/Debug_Desktop_a537e945e15d7717/cmbase.5a06059e/.tmp/cmbase
       -framework QtXml
       -framework QtXmlPatterns
       -framework Security
       -framework Foundation
       -framework ApplicationServices
       -framework AppKit
       -framework QtTest
       -framework QtSql
       -framework QtNetwork
       -framework QtConcurrent
       -framework DiskArbitration
       -framework IOKit
       -framework QtCore

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            hrabowski Maximilian Hrabowski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes