Esempio n. 1
0
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)
Esempio n. 2
0
File: scan.py Progetto: uuhan/ikos
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())