当前位置: 首页>>代码示例>>Python>>正文


Python conf.get_cc_version函数代码示例

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


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


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