@conf
def find_clangxx(conf):
    """
	Finds the program clang++, and executes it to ensure it really is clang++
	"""
    import os
    cxx = conf.find_program('clang++', var='CXX')
    if conf.options.clangxx_target_triple != None:
        conf.env.append_value('CXX', ['-target', conf.options.
            clangxx_target_triple])
    if conf.options.clangxx_sysroot != None:
        sysroot = str()
        if os.path.isabs(conf.options.clangxx_sysroot):
            sysroot = conf.options.clangxx_sysroot
        else:
            sysroot = os.path.normpath(os.path.join(os.getcwd(), conf.
                options.clangxx_sysroot))
        conf.env.append_value('CXX', ['--sysroot', sysroot])
    conf.get_cc_version(cxx, clang=True)
    conf.env.CXX_NAME = 'clang'
