798d4be080
Change-Id: I694e6c772f5347c820d9bd6c9aa61d6d9696911e
16 라인
526 B
Plaintext
16 라인
526 B
Plaintext
import sys
|
|
|
|
config.llvm_tools_dir = "@LLVM_TOOLS_BINARY_DIR@"
|
|
config.obj_root = "@BINARY_DIR@"
|
|
|
|
# Support substitution of the tools and libs dirs with user parameters. This is
|
|
# used when we can't determine the tool dir at configuration time.
|
|
try:
|
|
config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
|
|
config.obj_root = config.obj_root % lit_config.params
|
|
except KeyError:
|
|
e = sys.exc_info()[1]
|
|
key, = e.args
|
|
lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
|
|
|