QT 5.7.x qmake doesnt generate implicit rules



  • Hi,

    I have a problem when I use qmake from qt-opensource-windows-x86-mingw530-5.7.x, the Makefile.Release created by this version of qmake doesn't include the section "####### Implicit rules"m, this is very important for my code because I declare QMAKE_EXT_CPP += .c to compile some c code. It works with qt 5.5.1.

    If someone can help me with this?

    Thanks


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You should check with git what happened to qmake between 5.5.1 and 5.7.



  • this is the reason:

    the function "writeImplicitRulesPart" in file winmakefile.cpp is empty. It was removed from the code.

    SHA-1: db2c89beae6235520dd6a375001abf107b229e24

    • Stop generating implicit suffix rules in Makefiles

    Suffix rules are the old-fashioned way of defining implicit rules for make.
    We don't need them as we generate explicit rules for all sources we build.

    [ChangeLog][qmake] Makefile output no longer contains implicit
    suffix rules, as all sources are built using explicit rules.

    Change-Id: I4ecfa5b80c8ae33aea8730836f3baf99dd4951dd
    Task-number: QTBUG-30813
    Reviewed-by: Joerg Bornemann

    [edit: removed e-mail address SGaist]


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.