Files
MP-SPDZ/Scripts/compile-emulate.py
Marcel Keller 78fe3d8bad Maintenance.
2024-07-09 12:19:52 +10:00

19 lines
501 B
Python
Executable File

#!/usr/bin/env python3
import os, sys
sys.path.insert(0, os.path.dirname(sys.argv[0]) + '/..')
from Compiler.compilerLib import Compiler
compiler = Compiler(split_args=True)
compiler.prep_compile(build=False)
compiler.execute = True
compiler.options.execute = 'emulate'
if not compiler.options.binary:
compiler.options.ring = compiler.options.ring or '64'
compiler.options.keep_cisc = compiler.options.keep_cisc or ''
compiler.build()
prog = compiler.compile_file()
compiler.local_execution()