summaryrefslogtreecommitdiff
path: root/libcpu/SConscript
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-06-10 18:01:15 +0800
committerBernard Xiong <[email protected]>2018-06-10 18:01:15 +0800
commit564df04da1e0d0e7e3ac374fc7c3a51f2b0dba21 (patch)
treebf6c7b6d4514f8187d1ba4c87a7afc1ee641d901 /libcpu/SConscript
parent8e67f65688eae1da7c9191de5c983e828fce3c91 (diff)
parente1a57f053a4b77cabaf988779c107c54c7995e77 (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'libcpu/SConscript')
-rw-r--r--libcpu/SConscript6
1 files changed, 5 insertions, 1 deletions
diff --git a/libcpu/SConscript b/libcpu/SConscript
index 0d00976092..a42909e64c 100644
--- a/libcpu/SConscript
+++ b/libcpu/SConscript
@@ -4,6 +4,7 @@ from building import *
comm = rtconfig.ARCH + '/common'
path = rtconfig.ARCH + '/' + rtconfig.CPU
+ASFLAGS = ''
# The set of source files associated with this SConscript file.
if rtconfig.PLATFORM == 'armcc':
@@ -21,7 +22,10 @@ if rtconfig.PLATFORM == 'cl':
if rtconfig.PLATFORM == 'mingw':
src = Glob(path + '/*.c')
+if rtconfig.PLATFORM == 'armcc' and rtconfig.ARCH == 'arm' and rtconfig.CPU == 'arm926':
+ ASFLAGS = ' --cpreproc'
+
CPPPATH = [RTT_ROOT + '/libcpu/' + rtconfig.ARCH + '/' + rtconfig.CPU, RTT_ROOT + '/libcpu/' + rtconfig.ARCH + '/common']
-group = DefineGroup(rtconfig.CPU.upper(), src, depend = [''], CPPPATH = CPPPATH)
+group = DefineGroup(rtconfig.CPU.upper(), src, depend = [''], CPPPATH = CPPPATH, ASFLAGS = ASFLAGS)
Return('group')