summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/SConscript6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcpu/SConscript b/libcpu/SConscript
index a9b1eca794..298af2941b 100644
--- a/libcpu/SConscript
+++ b/libcpu/SConscript
@@ -6,13 +6,13 @@ comm = rtconfig.ARCH + '/common'
path = rtconfig.ARCH + '/' + rtconfig.CPU
# The set of source files associated with this SConscript file.
-if rtconfig.CC == 'armcc':
+if rtconfig.PLATFORM == 'armcc':
src_local = Glob(path + '/*.c') + Glob(path + '/*_rvds.s') + Glob(comm + '/*.c')
-if rtconfig.CC == 'gcc':
+if rtconfig.PLATFORM == 'gcc':
src_local = Glob(path + '/*.c') + Glob(path + '/*_gcc.s') + Glob(comm + '/*.c')
-if rtconfig.CC == 'iar':
+if rtconfig.PLATFORM == 'iar':
src_local = Glob(path + '/*.c') + Glob(path + '/*_iar.s') + Glob(comm + '/*.c')
env.Append(CPPPATH = [RTT_ROOT + '/libcpu/' + rtconfig.ARCH + '/' + rtconfig.CPU])