forked from qt-creator/qt-creator
CMake: Prevent crash if kit has no toolchain
Amends beb167a963
.
Change-Id: I65feee771a21bdfbb2a102419a0d778af97a22eb
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -939,7 +939,9 @@ static bool isDocker(const Kit *k)
|
|||||||
|
|
||||||
static bool isWindowsARM64(const Kit *k)
|
static bool isWindowsARM64(const Kit *k)
|
||||||
{
|
{
|
||||||
const auto targetAbi = ToolChainKitAspect::cxxToolChain(k)->targetAbi();
|
ToolChain *toolchain = ToolChainKitAspect::cxxToolChain(k);
|
||||||
|
QTC_ASSERT(toolchain, return false);
|
||||||
|
const Abi targetAbi = toolchain->targetAbi();
|
||||||
return targetAbi.os() == Abi::WindowsOS && targetAbi.architecture() == Abi::ArmArchitecture
|
return targetAbi.os() == Abi::WindowsOS && targetAbi.architecture() == Abi::ArmArchitecture
|
||||||
&& targetAbi.wordWidth() == 64;
|
&& targetAbi.wordWidth() == 64;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user