mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-25 19:30:04 +01:00
Update irixcc
This commit is contained in:
parent
61ee22b598
commit
d000220c26
@ -13,22 +13,11 @@ from waflib.Configure import conf
|
||||
@conf
|
||||
def find_irixcc(conf):
|
||||
v = conf.env
|
||||
cc = None
|
||||
if v.CC:
|
||||
cc = v.CC
|
||||
elif 'CC' in conf.environ:
|
||||
cc = conf.environ['CC']
|
||||
if not cc:
|
||||
cc = conf.find_program('cc', var='CC')
|
||||
if not cc:
|
||||
conf.fatal('irixcc was not found')
|
||||
|
||||
cc = conf.find_program('cc', var='CC')
|
||||
try:
|
||||
conf.cmd_and_log(cc + ['-version'])
|
||||
except Errors.WafError:
|
||||
conf.fatal('%r -version could not be executed' % cc)
|
||||
|
||||
v.CC = cc
|
||||
v.CC_NAME = 'irix'
|
||||
|
||||
@conf
|
||||
|
Loading…
Reference in New Issue
Block a user