aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-06-02 10:58:28 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-06-02 12:29:24 +0000
commitb8147d3b5f52c23d0d45c5914ed80c26aff36ce3 (patch)
tree84bd4b2f38519a2c761b9bb92818a09e773a7136
parent5ab3c42d199f8b94b3880e26064a567a06059c02 (diff)
shiboken6: Make command line errors easier to detect
Output the arguments line by line to show CMake quoting errors. Change-Id: I80958f10fa90b6adc5719653f93b4e28771ce261 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 12fa282ec7950473cad184e8ce16e70ee7588715) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--sources/shiboken6/generator/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/shiboken6/generator/main.cpp b/sources/shiboken6/generator/main.cpp
index 73b1a9658..dbb25d796 100644
--- a/sources/shiboken6/generator/main.cpp
+++ b/sources/shiboken6/generator/main.cpp
@@ -407,8 +407,9 @@ static inline void errorPrint(const QString &s)
{
QStringList arguments = QCoreApplication::arguments();
arguments.pop_front();
- std::cerr << "shiboken: " << qPrintable(s)
- << "\nCommand line: " << qPrintable(arguments.join(QLatin1Char(' '))) << '\n';
+ std::cerr << "shiboken: " << qPrintable(s) << "\nCommand line:\n";
+ for (const auto &argument : arguments)
+ std::cerr << " \"" << qPrintable(argument) << "\"\n";
}
static void parseIncludePathOption(const QString &option, HeaderType headerType,