Commit b062c5ec authored by Vladislav Perepelkin's avatar Vladislav Perepelkin
Browse files

Merge branch 'issue-16new' into 'master'

issue 16 updated

See merge request luna/luna!38
parents 1d83a299 4c47181b
......@@ -3,7 +3,7 @@
# TODO add ability to use some other temporary directory for building
# tests, not .luna subdirectory, and allow setup via environment var.
import sys, os, subprocess, json, re, datetime, signal
import sys, os, subprocess, json, re, datetime, signal, shutil
from common import *
_argv0=os.path.split(sys.argv[0])[1]
......@@ -176,6 +176,13 @@ def parse_args(args):
raise FatalError("no value provided for -D key");
arg=args[cur]
conf['PP_KEYS'].append(arg)
elif arg=='-c':
COMPILE_ONLY_FLAG=True
conf['SO_OUTPUT_FILE_NAME']='libucodes.so'
elif arg.startswith('--output-file='):
if 'SO_OUTPUT_FILE_NAME' in conf:
conf['SO_OUTPUT_FILE_NAME']=arg.split('=', 1)[1]
else: raise FatalError('--output-file supported only with -c before')
else:
if arg[cur].startswith('-'):
warn(1, "suspicious program name: '%s' (mistyped a key?)" \
......@@ -695,7 +702,9 @@ def main():
info('running program')
info(None)
if 'SO_OUTPUT_FILE_NAME' in conf:
shutil.copy(os.path.join(conf['BUILD_DIR'], 'libucodes.so'), conf['SO_OUTPUT_FILE_NAME'])
# =======
# run rts
# =======
......
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