def build_bitcode(mode, parser, src_path, bc_path): ''' Compile the given source file to llvm bitcode ''' cmd = [compiler(mode)] cmd += analyzer.clang_emit_llvm_flags() cmd += parser.compile_args cmd += analyzer.clang_ikos_flags() cmd += [src_path, '-o', bc_path] run(cmd)
def build_bitcode(mode, parser, src_path, bc_path): ''' Compile the given source file to llvm bitcode ''' cmd = [mode] cmd += analyzer.clang_emit_llvm_flags() cmd += parser.compile_args cmd += analyzer.clang_ikos_flags() cmd += [src_path, '-o', bc_path] run(cmd, executable=settings.clang())