summaryrefslogtreecommitdiff
path: root/src/components.c
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-09-23 13:11:34 +0800
committerGitHub <[email protected]>2018-09-23 13:11:34 +0800
commit4ffc675fcbf7c30b58d636a8ec92f1e6fd0054c0 (patch)
treea132d93019f1d6d0ac77c2c34b44ad78f757b134 /src/components.c
parentcf13f84c61c9a38458df0fb9c3ed81679e560ba1 (diff)
parentb98a0ba804f388f531106ff9602eb22ee66fe751 (diff)
Merge pull request #1835 from RT-Thread/feature_clang_arm
[Kernel] Add ARMCC 6.x support.
Diffstat (limited to 'src/components.c')
-rw-r--r--src/components.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components.c b/src/components.c
index 410b20be93..09f0680b55 100644
--- a/src/components.c
+++ b/src/components.c
@@ -136,7 +136,7 @@ void rt_application_init(void);
void rt_hw_board_init(void);
int rtthread_startup(void);
-#if defined (__CC_ARM)
+#if defined(__CC_ARM) || defined(__CLANG_ARM)
extern int $Super$$main(void);
/* re-define main function */
int $Sub$$main(void)
@@ -185,7 +185,7 @@ void main_thread_entry(void *parameter)
rt_components_init();
/* invoke system main function */
-#if defined (__CC_ARM)
+#if defined(__CC_ARM) || defined(__CLANG_ARM)
$Super$$main(); /* for ARMCC. */
#elif defined(__ICCARM__) || defined(__GNUC__)
main();