ProjectExplorer: Parse RISC-V GCC compiler name to detect it word width

Change-Id: I291fc1ef01091391a094e7031b813f5a4afb2f2d
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Denis Shienkov
2020-05-18 12:35:14 +03:00
parent d5443cea77
commit 903f6fb75d

View File

@@ -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;