Mercurial > hg > Members > shinya > pyrect
changeset 32:8d5ab8036fac
buf-fix: forgot adding CFLAGS to compile-option(jitgrep.py) .
author | Ryoma SHINYA <shinya@firefly.cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 10 Jul 2010 02:50:03 +0900 |
parents | 66f167c2286c |
children | e9e90c006760 |
files | pyrect/jitgrep.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/pyrect/jitgrep.py Fri Jul 09 22:53:41 2010 +0900 +++ b/pyrect/jitgrep.py Sat Jul 10 02:50:03 2010 +0900 @@ -16,7 +16,7 @@ optimize = "-O3" srcpath = "/tmp/jitgrep_dfa.c" binpath = "/tmp/jitgrep" - libgrep = "template/libgrep.so" + libgrep = os.path.dirname(__file__) + "/template/libgrep.so" argv_iter = argv for args in argv_iter: @@ -69,7 +69,7 @@ else: os.system(cmd) - cmd = " ".join([opts.compiler, optimize, srcpath, libgrep, "-o", binpath]) + cmd = " ".join([opts.compiler, optimize, opts.cflags, srcpath, libgrep, "-o", binpath]) if opts.debug: print("compile command", cmd) else: @@ -80,9 +80,9 @@ print("Compiling : " + str(end_time - start_time) + " Sec.") if opts.debug: - print("argv=" + argv) - print("args=" + args) - print("opts=" + opts) + print("argv=", argv) + print("args=", args) + print("opts=", opts) if len(args) == 2 and not opts.debug: while True: