You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.167
Former-commit-id: 289509151e0fee68a1b591a20c9f109c3c789d3a
This commit is contained in:
parent
e19d552987
commit
b084638f15
22
external/llvm/utils/llvm-lit/CMakeLists.txt
vendored
22
external/llvm/utils/llvm-lit/CMakeLists.txt
vendored
@ -1,22 +0,0 @@
|
||||
get_property(LLVM_LIT_CONFIG_MAP GLOBAL PROPERTY LLVM_LIT_CONFIG_MAP)
|
||||
|
||||
get_llvm_lit_path(LIT_BASE_DIR LIT_FILE_NAME)
|
||||
|
||||
set(LLVM_SOURCE_DIR ${LLVM_MAIN_SRC_DIR})
|
||||
|
||||
if(NOT "${CMAKE_CFG_INTDIR}" STREQUAL ".")
|
||||
foreach(BUILD_MODE ${CMAKE_CONFIGURATION_TYPES})
|
||||
string(REPLACE ${CMAKE_CFG_INTDIR} ${BUILD_MODE} bi ${LIT_BASE_DIR})
|
||||
set(bi "${bi}/${LIT_FILE_NAME}")
|
||||
configure_file(
|
||||
llvm-lit.in
|
||||
${bi}
|
||||
)
|
||||
endforeach()
|
||||
else()
|
||||
set(BUILD_MODE .)
|
||||
configure_file(
|
||||
llvm-lit.in
|
||||
${LIT_BASE_DIR}/${LIT_FILE_NAME}
|
||||
)
|
||||
endif()
|
32
external/llvm/utils/llvm-lit/llvm-lit.in
vendored
32
external/llvm/utils/llvm-lit/llvm-lit.in
vendored
@ -1,32 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
config_map = {}
|
||||
|
||||
def map_config(source_dir, site_config):
|
||||
global config_map
|
||||
source_dir = os.path.realpath(source_dir)
|
||||
source_dir = os.path.normcase(source_dir)
|
||||
site_config = os.path.normpath(site_config)
|
||||
config_map[source_dir] = site_config
|
||||
|
||||
# Variables configured at build time.
|
||||
llvm_source_root = "@LLVM_SOURCE_DIR@"
|
||||
llvm_obj_root = "@LLVM_BINARY_DIR@"
|
||||
|
||||
# Make sure we can find the lit package.
|
||||
sys.path.insert(0, os.path.join(llvm_source_root, 'utils', 'lit'))
|
||||
|
||||
# Set up some builtin parameters, so that by default the LLVM test suite
|
||||
# configuration file knows how to find the object tree.
|
||||
builtin_parameters = { 'build_mode' : "@BUILD_MODE@" }
|
||||
|
||||
@LLVM_LIT_CONFIG_MAP@
|
||||
|
||||
builtin_parameters['config_map'] = config_map
|
||||
|
||||
if __name__=='__main__':
|
||||
from lit.main import main
|
||||
main(builtin_parameters)
|
Reference in New Issue
Block a user