def get_version(self): if self.version_string == None: gcc_version = get_compiler_version("gcc") gpp_version = get_compiler_version("g++") if (gcc_version != gpp_version): raise Exception("gcc version mismatch (gcc is '%s'; g++ is '%s')" % (gcc_version, gpp_version)) self.version_string = gcc_version return self.version_string
def get_version(self): if self.version_string == None: clang_version = get_compiler_version("clang") clangpp_version = get_compiler_version("clang++") if clang_version != clangpp_version: raise Exception( "clang version mismatch (clang is '%s'; clang++ is '%s')" % (clang_version, clangpp_version) ) self.version_string = clang_version return self.version_string