Important: Please read the Qt Code of Conduct -

When is host_build true?

  • I'm building qt5 from source on Windows using mingw kit. I find the qmake condition host_build is false. There are many occurrences in .prf files such as:

    !host_build|!cross_compile {
        use_gold_linker: QMAKE_LFLAGS += $$QMAKE_LFLAGS_USE_GOLD
        enable_new_dtags: QMAKE_LFLAGS += $$QMAKE_LFLAGS_NEW_DTAGS
        enable_gdb_index: QMAKE_LFLAGS += $$QMAKE_LFLAGS_GDB_INDEX

    I want to know the meaning of host_build, and how/when is it set to true?


Log in to reply