summaryrefslogtreecommitdiffstats
path: root/src/corelib/configure.cmake
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2023-08-01 11:56:56 -0700
committerThiago Macieira <thiago.macieira@intel.com>2023-09-01 13:05:42 -0700
commit1bbd646e599ea94c1c2f13323226f50deb216800 (patch)
tree9e41838c604982cd9acb0eead21333213015bc40 /src/corelib/configure.cmake
parent9e8c93fac10b802448b6b7938054220984734434 (diff)
CMake: remove TEST_xlocalescanprint
It was only used to provide a CMake-time error instead of a build-time error. That cost us 250 ms of CMake time, even if you had double- conversion turned on. Instead, let the build fail for people who turn off libdouble-conversion. Change-Id: Ifbf974a4d10745b099b1fffd177757570c5575eb Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/corelib/configure.cmake')
-rw-r--r--src/corelib/configure.cmake39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/corelib/configure.cmake b/src/corelib/configure.cmake
index 1e05527517..41877d4c52 100644
--- a/src/corelib/configure.cmake
+++ b/src/corelib/configure.cmake
@@ -411,40 +411,6 @@ int main(void)
}
")
-# xlocalescanprint
-qt_config_compile_test(xlocalescanprint
- LABEL "xlocale.h (or equivalents)"
- CODE
-"#define QT_BEGIN_NAMESPACE
-#define QT_END_NAMESPACE
-
-#ifdef _MSVC_VER
-#define Q_CC_MSVC _MSVC_VER
-#endif
-
-#define QT_NO_DOUBLECONVERSION
-
-#include QDSP_P_H
-
-int main(void)
-{
- /* BEGIN TEST: */
-#ifdef _MSVC_VER
-_locale_t invalidLocale = NULL;
-#else
-locale_t invalidLocale = NULL;
-#endif
-double a = 3.4;
-qDoubleSnprintf(argv[0], 1, invalidLocale, \"invalid format\", a);
-qDoubleSscanf(argv[0], invalidLocale, \"invalid format\", &a, &argc);
- /* END TEST: */
- return 0;
-}
-"# FIXME: qmake: DEFINES += QDSP_P_H=$$shell_quote(\"@PWD@/text/qdoublescanprint_p.h\")
-)
-
-
-
#### Features
qt_feature("clock-gettime" PRIVATE
@@ -938,11 +904,6 @@ qt_configure_add_report_entry(
)
qt_configure_add_report_entry(
TYPE ERROR
- MESSAGE "Your C library does not provide sscanf_l or snprintf_l. You need to use libdouble-conversion for double/string conversion."
- CONDITION INPUT_doubleconversion STREQUAL 'no' AND NOT TEST_xlocalescanprint
-)
-qt_configure_add_report_entry(
- TYPE ERROR
MESSAGE "detected a std::atomic implementation that fails for function pointers. Please apply the patch corresponding to your Standard Library vendor, found in qtbase/config.tests/atomicfptr"
CONDITION NOT TEST_atomicfptr
)