diff options
| author | Meco Man <[email protected]> | 2022-01-14 23:31:59 -0500 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2022-01-17 11:18:09 +0800 |
| commit | 76cab376adf0cf52a17d11e633be711ba6149c4a (patch) | |
| tree | 54dee1f428b6431855b07b650542b554d397851f /components/libc/compilers/newlib/legacy/_select/SConscript | |
| parent | 1a46d7fe92e0e26ab480e9ef890a83848581c136 (diff) | |
[libc] 调整文件结构
Diffstat (limited to 'components/libc/compilers/newlib/legacy/_select/SConscript')
| -rw-r--r-- | components/libc/compilers/newlib/legacy/_select/SConscript | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/components/libc/compilers/newlib/legacy/_select/SConscript b/components/libc/compilers/newlib/legacy/_select/SConscript new file mode 100644 index 0000000000..b7bd86a36c --- /dev/null +++ b/components/libc/compilers/newlib/legacy/_select/SConscript @@ -0,0 +1,20 @@ +from shutil import copy +from building import * +from gcc import * +Import('rtconfig') + +src = [] +cwd = GetCurrentDir() +CPPPATH = [cwd] +group = [] + +# sys/select.h does not exist in newlib 2.1.0 or lower version +if rtconfig.PLATFORM == 'gcc' and (CheckHeader(rtconfig, 'sys/select.h') == False): + try: + copy("../../../../common/nogcc/sys/select.h", "./sys/select.h") # copy from 'nogcc/sys/select.h' + except: + pass + + group = DefineGroup('Compiler', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') |
