本文整理汇总了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'
示例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"
示例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'
示例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'
示例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"
示例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'
示例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"
示例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'
示例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'
示例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
示例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
示例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
示例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
示例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)
示例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'