SConscript 527 字节
Newer Older
1 2 3 4 5 6 7 8 9 10
from shutil import copy
from building import *
from gcc import *
Import('rtconfig')

src   = []
cwd   = GetCurrentDir()
CPPPATH = [cwd]
group = []

mysterywolf's avatar
mysterywolf 已提交
11
# sys/select.h does not exist in newlib 2.2.0 or lower version
12 13 14 15 16 17
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

mysterywolf's avatar
mysterywolf 已提交
18
    group = DefineGroup('Compiler', src, depend = [''], CPPPATH = CPPPATH)
19 20

Return('group')