diff options
| author | Bernard Xiong <[email protected]> | 2018-04-15 14:39:35 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2018-04-15 14:39:35 +0800 |
| commit | 74d045093bb4bda0d710c32c1a815aa672742c17 (patch) | |
| tree | 76c41a11859673b8f1161d113fb3fc49d98efa08 /components/libc/compilers/dlib/SConscript | |
| parent | 32f393ffcbed3be2be664f91437efbeb8770bf94 (diff) | |
[tools] Fix the sys.path issue in IARVersion.
Diffstat (limited to 'components/libc/compilers/dlib/SConscript')
| -rw-r--r-- | components/libc/compilers/dlib/SConscript | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/libc/compilers/dlib/SConscript b/components/libc/compilers/dlib/SConscript index 47fa8de83d..456b762496 100644 --- a/components/libc/compilers/dlib/SConscript +++ b/components/libc/compilers/dlib/SConscript @@ -1,6 +1,4 @@ from building import * -from distutils.version import LooseVersion -from iar import IARVersion Import('rtconfig') @@ -8,12 +6,15 @@ src = Glob('*.c') cwd = GetCurrentDir() group = [] -CPPPATH = [cwd] +CPPPATH = [cwd] CPPDEFINES = ['RT_USING_DLIBC'] if rtconfig.PLATFORM == 'iar': if GetDepend('RT_USING_DFS'): + from distutils.version import LooseVersion + from iar import IARVersion + CPPDEFINES = CPPDEFINES + ['_DLIB_FILE_DESCRIPTOR'] if LooseVersion(IARVersion()) < LooseVersion("8.20.1"): |
