mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
test: Add the new feature 'loadable_module'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120273 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
849f2e381e
commit
b3ccc12831
@ -176,6 +176,7 @@ lit.site.cfg: site.exp
|
||||
-e "s#@LLVM_BINARY_DIR@#$(LLVM_OBJ_ROOT)#g" \
|
||||
-e "s#@LLVM_TOOLS_DIR@#$(ToolDir)#g" \
|
||||
-e "s#@LLVMGCCDIR@#$(LLVMGCCDIR)#g" \
|
||||
-e "s#@ENABLE_SHARED@#$(ENABLE_SHARED)#g" \
|
||||
$(PROJ_SRC_DIR)/lit.site.cfg.in > $@
|
||||
|
||||
Unit/lit.site.cfg: $(PROJ_OBJ_DIR)/Unit/.dir FORCE
|
||||
|
13
test/lit.cfg
13
test/lit.cfg
@ -3,6 +3,7 @@
|
||||
# Configuration file for the 'lit' test runner.
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
# name: The name of this test suite.
|
||||
config.name = 'LLVM'
|
||||
@ -214,3 +215,15 @@ def on_clone(parent, cfg, for_path):
|
||||
lit.error('unable to understand %r:\n%s' % (libPath, lib))
|
||||
|
||||
config.on_clone = on_clone
|
||||
|
||||
### Features
|
||||
|
||||
# Loadable module
|
||||
# FIXME: This should be supplied by Makefile or autoconf.
|
||||
if sys.platform in ['win32', 'cygwin']:
|
||||
loadable_module = (config.enable_shared == 1)
|
||||
else:
|
||||
loadable_module = True
|
||||
|
||||
if loadable_module:
|
||||
config.available_features.add('loadable_module')
|
||||
|
@ -5,6 +5,7 @@ config.llvm_obj_root = "@LLVM_BINARY_DIR@"
|
||||
config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
|
||||
config.llvmgcc_dir = "@LLVMGCCDIR@"
|
||||
config.python_executable = "@PYTHON_EXECUTABLE@"
|
||||
config.enable_shared = @ENABLE_SHARED@
|
||||
|
||||
# Support substitution of the tools_dir with user parameters. This is
|
||||
# used when we can't determine the tool dir at configuration time.
|
||||
|
Loading…
Reference in New Issue
Block a user