From 903f6fb75d58e35d9311ba5e938f8a51bfe993d7 Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Mon, 18 May 2020 12:35:14 +0300 Subject: [PATCH] ProjectExplorer: Parse RISC-V GCC compiler name to detect it word width Change-Id: I291fc1ef01091391a094e7031b813f5a4afb2f2d Reviewed-by: hjk --- src/plugins/projectexplorer/abi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/abi.cpp b/src/plugins/projectexplorer/abi.cpp index 9b58cc34797..9bd6baf4da5 100644 --- a/src/plugins/projectexplorer/abi.cpp +++ b/src/plugins/projectexplorer/abi.cpp @@ -528,7 +528,7 @@ Abi Abi::abiFromTargetTriplet(const QString &triple) os = BareMetalOS; flavor = GenericFlavor; format = ElfFormat; - width = 32; + width = p.contains("64") ? 64 : 32; } else if (p.startsWith("mips")) { arch = MipsArchitecture; width = p.contains("64") ? 64 : 32;