diff options
| author | Meco Man <[email protected]> | 2022-08-15 10:32:27 -0400 |
|---|---|---|
| committer | guo <[email protected]> | 2022-08-16 09:39:00 +0800 |
| commit | dd94198bd6acaaf03324774fe415df3ca379d1f5 (patch) | |
| tree | 19a6dabb882c4be18290d0a3efea95c763ce987f /tools/building.py | |
| parent | c038e55d32362d52ffb35e20d4b05c445c35f3ce (diff) | |
[gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM
Diffstat (limited to 'tools/building.py')
| -rw-r--r-- | tools/building.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/building.py b/tools/building.py index 5526b84e05..91c6d05c99 100644 --- a/tools/building.py +++ b/tools/building.py @@ -124,7 +124,7 @@ class Win32Spawn: # generate cconfig.h file def GenCconfigFile(env, BuildOptions): - if rtconfig.PLATFORM == 'gcc': + if rtconfig.PLATFORM in ['gcc']: contents = '' if not os.path.isfile('cconfig.h'): import gcc @@ -287,7 +287,7 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [ GenCconfigFile(env, BuildOptions) # auto append '_REENT_SMALL' when using newlib 'nano.specs' option - if rtconfig.PLATFORM == 'gcc' and str(env['LINKFLAGS']).find('nano.specs') != -1: + if rtconfig.PLATFORM in ['gcc'] and str(env['LINKFLAGS']).find('nano.specs') != -1: env.AppendUnique(CPPDEFINES = ['_REENT_SMALL']) if GetOption('genconfig'): @@ -618,7 +618,7 @@ def DefineGroup(name, src, depend, **parameters): group['LOCAL_CPPPATH'] = paths - if rtconfig.PLATFORM == 'gcc': + if rtconfig.PLATFORM in ['gcc']: if 'CFLAGS' in group: group['CFLAGS'] = utils.GCCC99Patch(group['CFLAGS']) if 'CCFLAGS' in group: @@ -695,9 +695,9 @@ def PreBuilding(): def GroupLibName(name, env): - if rtconfig.PLATFORM == 'armcc': + if rtconfig.PLATFORM in ['armcc']: return name + '_rvds' - elif rtconfig.PLATFORM == 'gcc': + elif rtconfig.PLATFORM in ['gcc']: return name + '_gcc' return name |
