diff options
| author | Meco Man <[email protected]> | 2024-04-06 18:26:24 -0400 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-04-06 23:37:32 -0400 |
| commit | 545155616d8765fff91baf93c920662e217a03da (patch) | |
| tree | 17deecb30cf4647c4cb479814b8fa8744601daf7 /components | |
| parent | dd5548983954554868f90f5a027a99237eb6ec58 (diff) | |
[iar] fix legacy macros will be added if cannot get the IAR version
Diffstat (limited to 'components')
| -rw-r--r-- | components/libc/compilers/dlib/SConscript | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/libc/compilers/dlib/SConscript b/components/libc/compilers/dlib/SConscript index 98f664e8d9..51573b9e9a 100644 --- a/components/libc/compilers/dlib/SConscript +++ b/components/libc/compilers/dlib/SConscript @@ -13,7 +13,8 @@ if rtconfig.PLATFORM in ['iccarm']: from iar import IARVersion CPPDEFINES = CPPDEFINES + ['_DLIB_FILE_DESCRIPTOR'] - if LooseVersion(IARVersion()) < LooseVersion("8.20.1"): + iar_version = LooseVersion(IARVersion()) + if iar_version != LooseVersion("0.0") and iar_version < LooseVersion("8.20.1"): CPPDEFINES = CPPDEFINES + ['_DLIB_THREAD_SUPPORT'] group = DefineGroup('Compiler', src, depend = [''], CPPDEFINES = CPPDEFINES) |
