aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2020-06-07 21:52:41 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2020-06-11 08:17:36 +0000
commitdaf0a750cbb1fa2658cd81d5823ac9c03be39c99 (patch)
tree7da2eaa9380bafc04aaa399fba08fbe8fb96fac3 /src/plugins/projectexplorer
parenta5ef3260fa5862a74df1ad6b1ca8159fc6075eb3 (diff)
ProjectExplorer: Recognize GCC ABI for Compact Risc architecture
Now the ABI of GCC compiler for the Compact Risc (aka CR16) architecture is deteted correctly. Change-Id: Ifbe12a26036707da4a9df361d67b6033b29c0748 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer')
-rw-r--r--src/plugins/projectexplorer/abi.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/abi.cpp b/src/plugins/projectexplorer/abi.cpp
index e00ed09122..71672a96c2 100644
--- a/src/plugins/projectexplorer/abi.cpp
+++ b/src/plugins/projectexplorer/abi.cpp
@@ -499,6 +499,13 @@ Abi Abi::abiFromTargetTriplet(const QString &triple)
flavor = GenericFlavor;
format = ElfFormat;
width = 32;
+ } else if (p == "cr16") {
+ arch = CR16Architecture;
+ os = BareMetalOS;
+ flavor = GenericFlavor;
+ format = ElfFormat;
+ // Note that GCC macro returns 32-bit value for this architecture.
+ width = 32;
} else if (p == "msp430") {
arch = Msp430Architecture;
os = BareMetalOS;