Commit 833309cc authored by qinsoon's avatar qinsoon

compile_c_script also use libmu static library

parent 356f033d
......@@ -46,10 +46,11 @@ def compile_c_script(c_src_name):
CFLAGS = [
"-std=c11",
"-I%(proj_dir)s/src/vm/api" % globals(),
"-L" + libmu_path.dirname,
"-lmu",
"-lpthread",
"-ldl",
"-lm"
]
cmd = [CC] + CFLAGS + ['-o', bin_path.strpath] + [src_c.strpath]
cmd = [CC] + CFLAGS + ['-o', bin_path.strpath] + [src_c.strpath] + ["%s" % proj_dir.join('target', 'debug', 'libmu.a')]
# compile
p = subp.Popen(cmd, stdout=subp.PIPE, stderr=subp.PIPE, env=os.environ)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment