From dcb281af7dc1a41813300ea74f1890902f6bf748 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 13 Oct 2021 09:06:55 -0700 Subject: CMake: Make LTO build work We don't need to check FEATURE_ltcg, just add -fno-lto unconditionally. That makes QtCore compile with -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON. Change-Id: Icb2516126f674e7b8bb3fffd16ada2c71d7334aa Reviewed-by: Alexandru Croitor --- src/corelib/global/qversiontagging.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/corelib/global') diff --git a/src/corelib/global/qversiontagging.cpp b/src/corelib/global/qversiontagging.cpp index b5e524bf4c..a0d15ae871 100644 --- a/src/corelib/global/qversiontagging.cpp +++ b/src/corelib/global/qversiontagging.cpp @@ -102,7 +102,6 @@ make_versioned_symbol(SYM, QT_VERSION_MAJOR, 14, "@"); make_versioned_symbol(SYM, QT_VERSION_MAJOR, 15, "@"); #endif #if QT_VERSION_MINOR > 16 -// We don't expect there will be a Qt 5.17 # error "Please update this file with more Qt versions." #endif -- cgit v1.2.3