diff options
| author | Meco Man <[email protected]> | 2024-04-06 18:26:24 -0400 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-04-16 22:44:57 -0400 |
| commit | 156c4cead51f64ea63a5809c1c1bdff4dc121eb6 (patch) | |
| tree | 3f31319df1cbffe8d023bb811494ece3cdd4fbb3 /components | |
| parent | b9bffb2827f4870bf25752a1ecfdb11dc8493ed0 (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) |
