summaryrefslogtreecommitdiffstats
path: root/Modules/CMakePlatformId.h.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-09-15 13:19:48 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-09-15 13:19:58 (GMT)
commit01a25d72c69b0a9a60c1a62939d6a2c543448118 (patch)
tree866fc6f528ff6bfa86746a3ba740bc3f3e7dc1aa /Modules/CMakePlatformId.h.in
parent3c6d2c0213a08e681a42a9e74c1b425be84b0e17 (diff)
parent94df5b6ef1854355faceda2f76df142120a04d82 (diff)
downloadCMake-01a25d72c69b0a9a60c1a62939d6a2c543448118.zip
CMake-01a25d72c69b0a9a60c1a62939d6a2c543448118.tar.gz
CMake-01a25d72c69b0a9a60c1a62939d6a2c543448118.tar.bz2
Merge topic 'add_tasking_compiler'
94df5b6ef1 Tasking: Add support for several compiler toolsets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7491
Diffstat (limited to 'Modules/CMakePlatformId.h.in')
-rw-r--r--Modules/CMakePlatformId.h.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/Modules/CMakePlatformId.h.in b/Modules/CMakePlatformId.h.in
index 06f5ecd..32b7166 100644
--- a/Modules/CMakePlatformId.h.in
+++ b/Modules/CMakePlatformId.h.in
@@ -242,6 +242,30 @@
# elif defined(__ADSPBLACKFIN__)
# define ARCHITECTURE_ID "Blackfin"
+#elif defined(__TASKING__)
+
+# if defined(__CTC__) || defined(__CPTC__)
+# define ARCHITECTURE_ID "TriCore"
+
+# elif defined(__CMCS__)
+# define ARCHITECTURE_ID "MCS"
+
+# elif defined(__CARM__)
+# define ARCHITECTURE_ID "ARM"
+
+# elif defined(__CARC__)
+# define ARCHITECTURE_ID "ARC"
+
+# elif defined(__C51__)
+# define ARCHITECTURE_ID "8051"
+
+# elif defined(__CPCP__)
+# define ARCHITECTURE_ID "PCP"
+
+# else
+# define ARCHITECTURE_ID ""
+# endif
+
#else
# define ARCHITECTURE_ID
#endif