From a106c7cc020cf0f7e530831854c7787dd2513403 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 25 Mar 2025 09:22:02 +0100 Subject: [PATCH] Sdktool: Add comment about C/C++ toolchain pairs Fixes: QTCREATORBUG-32559 Change-Id: I96b46f85cb1dbb00fcfb22c0ae5d6ba9e7369ffe Reviewed-by: Leena Miettinen --- doc/qtcreator/src/reference/creator-sdk-tool.qdoc | 2 ++ src/tools/sdktool/addtoolchainoperation.cpp | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/qtcreator/src/reference/creator-sdk-tool.qdoc b/doc/qtcreator/src/reference/creator-sdk-tool.qdoc index 547cc1b304d..35b407df1c2 100644 --- a/doc/qtcreator/src/reference/creator-sdk-tool.qdoc +++ b/doc/qtcreator/src/reference/creator-sdk-tool.qdoc @@ -284,6 +284,8 @@ \row \li \c {--language } \li ID of the input language of the toolchain: \c C or \c Cxx. + When you register a C or C++ compiler, make sure to register the + corresponding C++ or C compiler as well. \li \inlineimage ok.png \row \li \c {--name } diff --git a/src/tools/sdktool/addtoolchainoperation.cpp b/src/tools/sdktool/addtoolchainoperation.cpp index 74f4965cf87..70f1c5f262e 100644 --- a/src/tools/sdktool/addtoolchainoperation.cpp +++ b/src/tools/sdktool/addtoolchainoperation.cpp @@ -50,11 +50,14 @@ QString AddToolChainOperation::argumentsHelpText() const return QString( " --id id of the new tool chain (required).\n" " --language input language id of the new tool chain (required).\n" + " When you register a C or C++ compiler, make sure to" + " register the corresponding C++ or C compiler as well." " --name display name of the new tool chain (required).\n" " --path path to the compiler (required).\n" " --abi ABI of the compiler (required).\n" " --supportedAbis , list of ABIs supported by the compiler.\n" - " extra key value pairs\n"); + " extra key value pairs\n" + ); } bool AddToolChainOperation::setArguments(const QStringList &args)