Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved Config += no_batch. Where is the documentation for this option?

    Tools
    4
    4
    2878
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      toran last edited by

      When my project's qmake runs (qtcreator 4.2.0) I am getting this message:
      Automatically turning off nmake's inference rules. (CONFIG += no_batch)

      Couple of questions:
      Why does it references "nmake"? Is it because I am using Microsoft compiler?

      I can't find any reference documentation on no_batch option. Moreover, google search brought me to the page where another option, object_parallel_to_source, is also mentioned.

      Perhaps someone knows where I can read about them? QMake Manual index has nothing, or I am missing something.

      Thanks.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        If you can't find anything, the best place is to dive into the code.

        Otherwise you can also ask on the Qt Creator mailing list. You'll find there Qt Creator developers/maintainers. This forum is more user oriented.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • Chris Kawa
          Chris Kawa Moderators last edited by

          Doesn't seem to be documented but looking at the code and the comments there, it seems that there's some optimization going on, which can cause problems with nmake when there are files named the same but in different directories (as stated in the bug report you mentioned compiled object files end up in the same directory and overwrite each other). In that case the optimization is turned off and this warning is issued. The solution seems to be either specify that option explicitly (as the warning suggests) to silent the warning or to get rid of name duplicates. The latter would be my recommendation. Duplicates are nothing but trouble.

          S 1 Reply Last reply Reply Quote 1
          • S
            ScumCoder @Chris Kawa last edited by

            @Chris-Kawa said in Config += no_batch. Where is the documentation for this option?:

            Duplicates are nothing but trouble.

            You would have been right, if the files in question were parts of the relevant project. In reality, to get this warning, it's enough for nmake to stumble upon a file that just happens to lie around and have the same name as any of the (hundreds) of files in your project. Example: you borrow a class (*.h + *.cpp) from another project, nmake peeks in its folder, sees main.cpp of this other project, and ***ts itself. So the blame is squarely on nmake being obtuse.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post