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

rcc generates cpp files that are not compatible with unity builds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.14.1
    • Build tools: rcc
    • None
    • All

    Description

      As the Rcc creates anonymous namespace with a struct called "dummy", like :

      namespace {
      struct initializer

      { initializer() \{ QT_RCC_MANGLE_NAMESPACE(qInitResources_qrc_maclass)(); }

      ~initializer() { QT_RCC_MANGLE_NAMESPACE(qCleanupResources_qrc_maclass)(); }
      } dummy;
      }

      you can't have unity builds with multiples generated _rcc.cpp files ( for now i am obliged to exclude them from unity build )

      the compilation fail "dummy struct already defined"

      can we have a similar option to have a non anonymous namespace ?

      --namespace myname

      or an option to prefix dummy structure --prefixStruct maStruct ?

      thx

       

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            sruard sylvain ruard-dumaine
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes