• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python conf.get_cc_version函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中waflib.Configure.conf.get_cc_version函数的典型用法代码示例。如果您正苦于以下问题:Python get_cc_version函数的具体用法?Python get_cc_version怎么用?Python get_cc_version使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_cc_version函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: find_gxx

def find_gxx(conf):
	"""
	Find the program g++, and if present, try to detect its version number
	"""
	cxx = conf.find_program(['g++', 'c++'], var='CXX')
	conf.get_cc_version(cxx, gcc=True)
	conf.env.CXX_NAME = 'gcc'
开发者ID:DigitalDan05,项目名称:waf,代码行数:7,代码来源:gxx.py


示例2: find_gxx

def find_gxx(conf):
    names = ["g++", "c++"]
    if conf.env.TOOLCHAIN != "native":
        names = ["%s-%s" % (conf.env.TOOLCHAIN, n) for n in names]
    cxx = conf.find_program(names, var="CXX")
    conf.get_cc_version(cxx, gcc=True)
    conf.env.CXX_NAME = "gcc"
开发者ID:nxajh,项目名称:ardupilot,代码行数:7,代码来源:toolchain.py


示例3: find_clang

def find_clang(conf):
	"""
	Find the program clang and execute it to ensure it really is clang
	"""
	cc = conf.find_program('clang', var='CC')
	conf.get_cc_version(cc, clang=True)
	conf.env.CC_NAME = 'clang'
开发者ID:Jajcus,项目名称:jack2,代码行数:7,代码来源:clang.py


示例4: find_icc

def find_icc(conf):
	"""
	Finds the program icc and execute it to ensure it really is icc
	"""
	cc = conf.find_program(['icc', 'ICL'], var='CC')
	conf.get_cc_version(cc, icc=True)
	conf.env.CC_NAME = 'icc'
开发者ID:ArduPilot,项目名称:waf,代码行数:7,代码来源:icc.py


示例5: find_gcc

def find_gcc(conf):
    names = ["gcc", "cc"]
    if conf.env.TOOLCHAIN != "native":
        names = ["%s-%s" % (conf.env.TOOLCHAIN, n) for n in names]
    cc = conf.find_program(names, var="CC")
    conf.get_cc_version(cc, gcc=True)
    conf.env.CC_NAME = "gcc"
开发者ID:nxajh,项目名称:ardupilot,代码行数:7,代码来源:toolchain.py


示例6: find_clangxx

def find_clangxx(conf):
	"""
	Finds the program clang++, and executes it to ensure it really is clang++
	"""
	cxx = conf.find_program('clang++', var='CXX')
	conf.get_cc_version(cxx, clang=True)
	conf.env.CXX_NAME = 'clang'
开发者ID:afeldman,项目名称:waf,代码行数:7,代码来源:clangxx.py


示例7: find_gxx

def find_gxx(conf):
    """
	Finds the program g++, and if present, try to detect its version number
	"""
    cxx = conf.find_program(["g++", "c++"], var="CXX")
    conf.get_cc_version(cxx, gcc=True)
    conf.env.CXX_NAME = "gcc"
开发者ID:yukimori,项目名称:waf,代码行数:7,代码来源:gxx.py


示例8: find_icpc

def find_icpc(conf):
	"""
	Finds the program icpc, and execute it to ensure it really is icpc
	"""
	cxx = conf.find_program('icpc', var='CXX')
	conf.get_cc_version(cxx, icc=True)
	conf.env.CXX_NAME = 'icc'
开发者ID:ArduPilot,项目名称:waf,代码行数:7,代码来源:icpc.py


示例9: find_gcc

def find_gcc(conf):
	"""
	Find the program gcc, and if present, try to detect its version number
	"""
	cc = conf.find_program(['gcc', 'cc'], var='CC')
	conf.get_cc_version(cc, gcc=True)
	conf.env.CC_NAME = 'gcc'
开发者ID:Jajcus,项目名称:jack2,代码行数:7,代码来源:gcc.py


示例10: find_android_gxx

def find_android_gxx(conf):
	exeDir = os.path.join(conf.options.ndk, "toolchains", "arm-linux-androideabi-4.6", "prebuilt", "windows-x86_64", "bin")
	cxx=conf.find_program(['arm-linux-androideabi-g++'], var = "CXX", path_list=[exeDir])
	cxx=conf.cmd_to_list(cxx)
	conf.get_cc_version(cxx,gcc=True)
	conf.env.CXX_NAME='gcc'
	conf.env.CXX=cxx
开发者ID:pixpil,项目名称:gii,代码行数:7,代码来源:android-gxx.py


示例11: find_clangxx

def find_clangxx(conf):
    """
    Find the program g++, and if present, try to detect its version number
    """
    cxx = conf.find_program(['clang++', 'c++'], var='CXX')
    cxx = conf.cmd_to_list(cxx)
    conf.get_cc_version(cxx, gcc=True)
    conf.env.CXX_NAME = 'clang'
    conf.env.CXX      = cxx
开发者ID:Dzshiftt,项目名称:Gnomescroll,代码行数:9,代码来源:clangxx.py


示例12: find_arm_gcc

def find_arm_gcc(conf):
	"""
	Find the program gcc, and if present, try to detect its version number
	"""
	cc = conf.find_program(['arm-none-eabi-gcc', 'arm-none-linux-gnueabi-gcc'], var='CC')
	cc = conf.cmd_to_list(cc)
	conf.get_cc_version(cc, gcc=True)
	conf.env.CC_NAME = 'arm-gcc'
	conf.env.CC      = cc
开发者ID:imanaskari,项目名称:swiftler-bones,代码行数:9,代码来源:arm_gcc.py


示例13: find_clang

def find_clang(conf):
    """
    Find the program clang, and if present, try to detect its version number
    """
    cc = conf.find_program(['clang', 'cc'], var='CC')
    cc = conf.cmd_to_list(cc)
    conf.get_cc_version(cc, gcc=True)
    conf.env.CC_NAME = 'clang'
    conf.env.CC      = cc
开发者ID:Dzshiftt,项目名称:Gnomescroll,代码行数:9,代码来源:clang.py


示例14: mkspec_check_gcc_version

def mkspec_check_gcc_version(conf, compiler, major, minor, minimum=False):
    """
    Check the exact or minimum gcc version.

    :param major: The major version number, e.g. 4
    :param minor: The minor version number, e.g. 6
    :param minimum: Only check for a minimum compiler version, if true
    """
    conf.get_cc_version(cc=compiler, gcc=True)
    conf.mkspec_validate_cc_version(major, minor, minimum)
开发者ID:steinwurf,项目名称:waf-tools,代码行数:10,代码来源:gxx_common.py


示例15: find_icc

def find_icc(conf):
	"""
	Find the program icc and execute it to ensure it really is icc
	"""
	if sys.platform == 'cygwin':
		conf.fatal('The Intel compiler does not work on Cygwin')

	cc = conf.find_program(['icc', 'ICL'], var='CC')
	conf.get_cc_version(cc, icc=True)
	conf.env.CC_NAME = 'icc'
开发者ID:DigitalDan05,项目名称:waf,代码行数:10,代码来源:icc.py


示例16: find_icpc

def find_icpc(conf):
	"""
	Find the program icpc, and execute it to ensure it really is icpc
	"""
	if sys.platform == 'cygwin':
		conf.fatal('The Intel compiler does not work on Cygwin')

	cxx = conf.find_program('icpc', var='CXX')
	conf.get_cc_version(cxx, icc=True)
	conf.env.CXX_NAME = 'icc'
开发者ID:AleemDev,项目名称:waf,代码行数:10,代码来源:icpc.py


示例17: find_avr_gxx

def find_avr_gxx(conf):
	"""
	Find the program g++, and if present, try to detect its version number
	"""
	cxx = conf.find_program(['avr-g++'], var='CXX')
	# Shortcut...
	cxx = "/Applications/Arduino.app//Contents/Resources/Java/hardware/tools/avr/bin/avr-g++"
	cxx = conf.cmd_to_list(cxx)
	conf.get_cc_version(cxx, gcc=True)
	conf.env.CXX_NAME = 'gcc'
	conf.env.CXX      = cxx
开发者ID:anxin1225,项目名称:qualia,代码行数:11,代码来源:avr_gxx.py


示例18: mkspec_check_cc_version

def mkspec_check_cc_version(conf, compiler, major, minor):
    """
    :param major: The major version number of the g++ binary e.g. 4
    :param minor: The minor version number of the g++ binary e.g. 6
    """
    conf.get_cc_version(compiler, gcc=True)

    if int(conf.env["CC_VERSION"][0]) != int(major) or int(conf.env["CC_VERSION"][1]) != int(minor):
        conf.fatal(
            "Wrong version number: {0}, "
            "expected major={1} and minor={2}.".format(conf.env["CC_VERSION"], major, minor)
        )
开发者ID:GOPRO1955,项目名称:external-waf-tools,代码行数:12,代码来源:cxx_common.py


示例19: find_icpc

def find_icpc(conf):
	if sys.platform=='cygwin':
		conf.fatal('The Intel compiler does not work on Cygwin')
	v=conf.env
	cxx=None
	if v['CXX']:cxx=v['CXX']
	elif'CXX'in conf.environ:cxx=conf.environ['CXX']
	if not cxx:cxx=conf.find_program('icpc',var='CXX')
	if not cxx:conf.fatal('Intel C++ Compiler (icpc) was not found')
	cxx=conf.cmd_to_list(cxx)
	conf.get_cc_version(cxx,icc=True)
	v['CXX']=cxx
	v['CXX_NAME']='icc'
开发者ID:AKASeon,项目名称:Whatever,代码行数:13,代码来源:icpc.py


示例20: find_icc

def find_icc(conf):
	if sys.platform=='cygwin':
		conf.fatal('The Intel compiler does not work on Cygwin')
	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('icc',var='CC')
	if not cc:cc=conf.find_program('ICL',var='CC')
	if not cc:conf.fatal('Intel C Compiler (icc) was not found')
	cc=conf.cmd_to_list(cc)
	conf.get_cc_version(cc,icc=True)
	v['CC']=cc
	v['CC_NAME']='icc'
开发者ID:RunarFreyr,项目名称:waz,代码行数:14,代码来源:icc.py



注:本文中的waflib.Configure.conf.get_cc_version函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python conf.get_msvc_version函数代码示例发布时间:2022-05-26
下一篇:
Python conf.gcc_common_flags函数代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap