summaryrefslogtreecommitdiffstats
path: root/configure.pri
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-09-18 10:42:12 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-10-12 13:24:19 +0000
commit8d2deea49c506330a1077eedd1ec104beced65e7 (patch)
tree2fc005c4fdeecf6fe237db78d3fc93773cff010a /configure.pri
parent8315acfb16ebc0c8788255965f73eb9d3557f027 (diff)
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>
Diffstat (limited to 'configure.pri')
-rw-r--r--configure.pri30
1 files changed, 30 insertions, 0 deletions
diff --git a/configure.pri b/configure.pri
index 3747f96f3d..64ed6b9ed8 100644
--- a/configure.pri
+++ b/configure.pri
@@ -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()