mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-29 05:21:23 +01:00
Update irixcc
This commit is contained in:
parent
73d432eb0a
commit
5ec740ad2e
@ -13,22 +13,11 @@ from waflib.Configure import conf
|
|||||||
@conf
|
@conf
|
||||||
def find_irixcc(conf):
|
def find_irixcc(conf):
|
||||||
v = conf.env
|
v = conf.env
|
||||||
cc = None
|
cc = conf.find_program('cc', var='CC')
|
||||||
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')
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
conf.cmd_and_log(cc + ['-version'])
|
conf.cmd_and_log(cc + ['-version'])
|
||||||
except Errors.WafError:
|
except Errors.WafError:
|
||||||
conf.fatal('%r -version could not be executed' % cc)
|
conf.fatal('%r -version could not be executed' % cc)
|
||||||
|
|
||||||
v.CC = cc
|
|
||||||
v.CC_NAME = 'irix'
|
v.CC_NAME = 'irix'
|
||||||
|
|
||||||
@conf
|
@conf
|
||||||
|
Loading…
Reference in New Issue
Block a user