Beispiel #1
0
def find_sxx(conf):
    """
	Detect the sun C++ compiler
	"""
    v = conf.env
    cc = None
    if v["CXX"]:
        cc = v["CXX"]
    elif "CXX" in conf.environ:
        cc = conf.environ["CXX"]
    if not cc:
        cc = conf.find_program("CC", var="CXX")  # studio
    if not cc:
        cc = conf.find_program("c++", var="CXX")
    if not cc:
        conf.fatal("Could not find a Sun C++ compiler")

    try:
        conf.cmd_and_log(cc + ["-flags"])
    except Exception:
        conf.fatal("%r is not a Sun compiler" % cc)

    v["CXX"] = cc
    v["CXX_NAME"] = "sun"
    conf.get_suncc_version(cc)
Beispiel #2
0
def find_sxx(conf):
    v = conf.env
    cc = conf.find_program(['CC', 'c++'], var='CXX')
    try:
        conf.cmd_and_log(cc + ['-flags'])
    except Exception:
        conf.fatal('%r is not a Sun compiler' % cc)
    v.CXX_NAME = 'sun'
    conf.get_suncc_version(cc)
Beispiel #3
0
def find_scc(conf):
    v = conf.env
    cc = conf.find_program('cc', var='CC')
    try:
        conf.cmd_and_log(cc + ['-flags'])
    except Exception:
        conf.fatal('%r is not a Sun compiler' % cc)
    v.CC_NAME = 'sun'
    conf.get_suncc_version(cc)
Beispiel #4
0
def find_sxx(conf):
	v=conf.env
	cc=conf.find_program(['CC','c++'],var='CXX')
	try:
		conf.cmd_and_log(cc+['-flags'])
	except Exception:
		conf.fatal('%r is not a Sun compiler'%cc)
	v.CXX_NAME='sun'
	conf.get_suncc_version(cc)
Beispiel #5
0
def find_sxx(conf):
    v = conf.env
    cc = conf.find_program(["CC", "c++"], var="CXX")
    try:
        conf.cmd_and_log(cc + ["-flags"])
    except Exception:
        conf.fatal("%r is not a Sun compiler" % cc)
    v.CXX_NAME = "sun"
    conf.get_suncc_version(cc)
Beispiel #6
0
def find_scc(conf):
	v=conf.env
	cc=conf.find_program('cc',var='CC')
	try:
		conf.cmd_and_log(cc+['-flags'])
	except Exception:
		conf.fatal('%r is not a Sun compiler'%cc)
	v.CC_NAME='sun'
	conf.get_suncc_version(cc)
Beispiel #7
0
def find_scc(conf):
    v = conf.env
    cc = conf.find_program("cc", var="CC")
    try:
        conf.cmd_and_log(cc + ["-flags"])
    except Exception:
        conf.fatal("%r is not a Sun compiler" % cc)
    v.CC_NAME = "sun"
    conf.get_suncc_version(cc)
Beispiel #8
0
def find_sxx(conf):
    """
	Detects the sun C++ compiler
	"""
    v = conf.env
    cc = conf.find_program(['CC', 'c++'], var='CXX')
    try:
        conf.cmd_and_log(cc + ['-flags'])
    except Errors.WafError:
        conf.fatal('%r is not a Sun compiler' % cc)
    v.CXX_NAME = 'sun'
    conf.get_suncc_version(cc)
Beispiel #9
0
def find_scc(conf):
    """
	Detects the Sun C compiler
	"""
    v = conf.env
    cc = conf.find_program('cc', var='CC')
    try:
        conf.cmd_and_log(cc + ['-flags'])
    except Errors.WafError:
        conf.fatal('%r is not a Sun compiler' % cc)
    v.CC_NAME = 'sun'
    conf.get_suncc_version(cc)
def find_scc(conf):
    """
    Detects the Sun C compiler
    """
    v = conf.env
    cc = conf.find_program("cc", var="CC")
    try:
        conf.cmd_and_log(cc + ["-flags"])
    except Errors.WafError:
        conf.fatal("%r is not a Sun compiler" % cc)
    v.CC_NAME = "sun"
    conf.get_suncc_version(cc)
Beispiel #11
0
def find_scc(conf):
	"""
	Detects the Sun C compiler
	"""
	v = conf.env
	cc = conf.find_program('cc', var='CC')
	try:
		conf.cmd_and_log(cc + ['-flags'])
	except Errors.WafError:
		conf.fatal('%r is not a Sun compiler' % cc)
	v.CC_NAME = 'sun'
	conf.get_suncc_version(cc)
Beispiel #12
0
def find_sxx(conf):
	"""
	Detects the sun C++ compiler
	"""
	v = conf.env
	cc = conf.find_program(['CC', 'c++'], var='CXX')
	try:
		conf.cmd_and_log(cc + ['-flags'])
	except Errors.WafError:
		conf.fatal('%r is not a Sun compiler' % cc)
	v.CXX_NAME = 'sun'
	conf.get_suncc_version(cc)
Beispiel #13
0
def find_sxx(conf):
    """
    Detects the sun C++ compiler
    """
    v = conf.env
    cc = conf.find_program(["CC", "c++"], var="CXX")
    try:
        conf.cmd_and_log(cc + ["-flags"])
    except Errors.WafError:
        conf.fatal("%r is not a Sun compiler" % cc)
    v.CXX_NAME = "sun"
    conf.get_suncc_version(cc)
def find_scc(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('Could not find a Sun C compiler')
	try:
		conf.cmd_and_log(cc+['-flags'])
	except Exception:
		conf.fatal('%r is not a Sun compiler'%cc)
	v['CC']=cc
	v['CC_NAME']='sun'
	conf.get_suncc_version(cc)
def find_sxx(conf):
	"""
	Detect the sun C++ compiler
	"""
	v = conf.env
	cc = None
	if v['CXX']: cc = v['CXX']
	elif 'CXX' in conf.environ: cc = conf.environ['CXX']
	if not cc: cc = conf.find_program('CC', var='CXX') #studio
	if not cc: cc = conf.find_program('c++', var='CXX')
	if not cc: conf.fatal('Could not find a Sun C++ compiler')

	try:
		conf.cmd_and_log(cc + ['-flags'])
	except Exception:
		conf.fatal('%r is not a Sun compiler' % cc)

	v['CXX']  = cc
	v['CXX_NAME'] = 'sun'
	conf.get_suncc_version(cc)
Beispiel #16
0
def find_sxx(conf):
	"""
	Detect the sun C++ compiler
	"""
	v = conf.env
	cc = None
	if v['CXX']: cc = v['CXX']
	elif 'CXX' in conf.environ: cc = conf.environ['CXX']
	if not cc: cc = conf.find_program('CC', var='CXX') #studio
	if not cc: cc = conf.find_program('c++', var='CXX')
	if not cc: conf.fatal('Could not find a Sun C++ compiler')
	cc = conf.cmd_to_list(cc)

	try:
		conf.cmd_and_log(cc + ['-flags'])
	except Exception:
		conf.fatal('%r is not a Sun compiler' % cc)

	v['CXX']  = cc
	v['CXX_NAME'] = 'sun'
	conf.get_suncc_version(cc)