Report compiler and version in configure overview
It is not always easy to spot the compiler version in the build or configure log, so report it explicitly to make our lives easier when trying to figure out why a specific build might have failed. Change-Id: I1c84199aad4a98a30b0b4c4fbf2554008dc3ba2d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
parent
8315acfb16
commit
8d2deea49c
@ -1221,13 +1221,43 @@ defineReplace(qtConfReportArch) {
|
||||
return("$$arch, CPU features: $$subarch")
|
||||
}
|
||||
|
||||
defineReplace(qtConfReportCompiler) {
|
||||
clang_cl: {
|
||||
return("clang-cl $${QMAKE_CLANG_MAJOR_VERSION}.$${QMAKE_CLANG_MINOR_VERSION}.$${QMAKE_CLANG_PATCH_VERSION}")
|
||||
} else: clang {
|
||||
!isEmpty(QMAKE_APPLE_CLANG_MAJOR_VERSION) {
|
||||
return("clang (Apple) $${QMAKE_APPLE_CLANG_MAJOR_VERSION}.$${QMAKE_APPLE_CLANG_MINOR_VERSION}.$${QMAKE_APPLE_CLANG_PATCH_VERSION}")
|
||||
} else {
|
||||
return("clang $${QMAKE_CLANG_MAJOR_VERSION}.$${QMAKE_CLANG_MINOR_VERSION}.$${QMAKE_CLANG_PATCH_VERSION}")
|
||||
}
|
||||
} else: intel_icc {
|
||||
return("intel_icc $$QMAKE_ICC_VER")
|
||||
} else: intel_icl {
|
||||
return("intel_icl $$QMAKE_ICC_VER")
|
||||
} else: rim_qcc {
|
||||
return("rim_qcc $${QMAKE_GCC_MAJOR_VERSION}.$${QMAKE_GCC_MINOR_VERSION}.$${QMAKE_GCC_PATCH_VERSION}")
|
||||
} else: gcc {
|
||||
return("gcc $${QMAKE_GCC_MAJOR_VERSION}.$${QMAKE_GCC_MINOR_VERSION}.$${QMAKE_GCC_PATCH_VERSION}")
|
||||
} else: msvc {
|
||||
return("msvc $$QMAKE_MSC_FULL_VER")
|
||||
} else: ghs {
|
||||
return("ghs $$QMAKE_GHS_VERSION")
|
||||
} else {
|
||||
return("unknown ($$QMAKE_COMPILER)")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
defineTest(qtConfReport_buildTypeAndConfig) {
|
||||
!$$qtConfEvaluate("features.cross_compile") {
|
||||
qtConfAddReport("Build type: $$[QMAKE_SPEC] ($$qtConfReportArch(architecture))")
|
||||
qtConfAddReport("Compiler: $$qtConfReportCompiler()")
|
||||
} else {
|
||||
qtConfAddReport("Building on: $$[QMAKE_SPEC] ($$qtConfReportArch(host_architecture))")
|
||||
qtConfAddReport("Building for: $$[QMAKE_XSPEC] ($$qtConfReportArch(architecture))")
|
||||
qtConfAddReport("Target compiler: $$qtConfReportCompiler()")
|
||||
}
|
||||
|
||||
qtConfAddReport()
|
||||
qtConfAddReport("Configuration: $$eval($${currentConfig}.output.privatePro.append.CONFIG) $$eval($${currentConfig}.output.publicPro.append.QT_CONFIG)")
|
||||
qtConfAddReport()
|
||||
|
Loading…
Reference in New Issue
Block a user