summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorguo <[email protected]>2021-12-24 09:17:41 +0800
committerGitHub <[email protected]>2021-12-24 09:17:41 +0800
commit51569a068af77c3002bd2c333f84ada1ee377874 (patch)
treed1c484e42a876d7b630d5fbc1434bc59ad01287c /components
parenta2561a41b9a8c59b32812ecb633600298394cbf6 (diff)
parented1f8b3f6411a74a80c2d2288b12bf75eacc008b (diff)
Merge pull request #5418 from mysterywolf/revert-5412-clang-arm
Revert "add clang-arm support."
Diffstat (limited to 'components')
-rw-r--r--components/drivers/spi/SConscript2
-rw-r--r--components/libc/compilers/common/nogcc/SConscript2
-rw-r--r--components/libc/compilers/gcc/newlib/SConscript2
3 files changed, 3 insertions, 3 deletions
diff --git a/components/drivers/spi/SConscript b/components/drivers/spi/SConscript
index da14ed5fef..d6cb93f7f1 100644
--- a/components/drivers/spi/SConscript
+++ b/components/drivers/spi/SConscript
@@ -25,7 +25,7 @@ if GetDepend('RT_USING_SFUD'):
CPPPATH += [cwd + '/sfud/inc']
if GetDepend('RT_SFUD_USING_SFDP'):
src_device += ['sfud/src/sfud_sfdp.c']
- if rtconfig.CROSS_TOOL == 'gcc' or rtconfig.CROSS_TOOL == 'clang':
+ if rtconfig.CROSS_TOOL == 'gcc':
LOCAL_CCFLAGS += ' -std=c99'
elif rtconfig.CROSS_TOOL == 'keil':
if rtconfig.PLATFORM == 'armcc':
diff --git a/components/libc/compilers/common/nogcc/SConscript b/components/libc/compilers/common/nogcc/SConscript
index b144f1b3b4..c766c8f82d 100644
--- a/components/libc/compilers/common/nogcc/SConscript
+++ b/components/libc/compilers/common/nogcc/SConscript
@@ -10,6 +10,6 @@ group = []
if GetDepend('RT_USING_LIBC'):
src += Glob('*.c')
-if (rtconfig.PLATFORM != 'gcc' and rtconfig.PLATFORM != 'clang') or rtconfig.ARCH == 'sim':
+if rtconfig.PLATFORM != 'gcc' or rtconfig.ARCH == 'sim':
group = DefineGroup('libc', src, depend = [], CPPPATH = CPPPATH)
Return('group')
diff --git a/components/libc/compilers/gcc/newlib/SConscript b/components/libc/compilers/gcc/newlib/SConscript
index 7ab0dd046b..58672a0255 100644
--- a/components/libc/compilers/gcc/newlib/SConscript
+++ b/components/libc/compilers/gcc/newlib/SConscript
@@ -7,7 +7,7 @@ group = []
LIBS = ['m'] # link libm
CPPPATH = [cwd]
-if rtconfig.PLATFORM == 'gcc' or rtconfig.PLATFORM == 'clang':
+if rtconfig.PLATFORM == 'gcc':
if GetDepend('RT_USING_LIBC'):
LIBS += ['c'] # link libc
src += Glob('*.c')