File: lit.site.cfg.py.in

package info (click to toggle)
intel-graphics-compiler 1.0.17791.18-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 102,312 kB
  • sloc: cpp: 935,343; lisp: 286,143; ansic: 16,196; python: 3,279; yacc: 2,487; lex: 1,642; pascal: 300; sh: 174; makefile: 27
file content (48 lines) | stat: -rw-r--r-- 2,199 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# ========================== begin_copyright_notice ============================
#
# Copyright (C) 2020-2023 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
# =========================== end_copyright_notice =============================

@LIT_SITE_CFG_IN_HEADER@

import sys

config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
config.lit_tools_dir = "@LLVM_TOOLS_DIR@"
config.host_triple = "@LLVM_HOST_TRIPLE@"
config.target_triple = "@TARGET_TRIPLE@"
config.host_arch = "@HOST_ARCH@"
config.python_executable = "@PYTHON_EXECUTABLE@"
config.test_run_dir = "@CMAKE_CURRENT_BINARY_DIR@"
config.vc_opt_build_dir = "$<$<TARGET_EXISTS:vc_opt>:$<TARGET_FILE_DIR:vc_opt>>"
config.cm_opt_bin_dir = "@IGC_BUILD__CMOPT_DIR@/bin"
config.cm_opt_lib_dir = "@IGC_BUILD__CMOPT_DIR@/lib"
config.oneapi_readelf_dir = "@IGC_BUILD__ONEAPI_READELF_DIR@"
config.llvm_plugin = "$<$<TARGET_EXISTS:VCBackendPlugin>:$<TARGET_FILE:VCBackendPlugin>>"
config.vc_printf_ocl_bif = "$<TARGET_PROPERTY:VCBiFPreparation,BINARY_DIR>/VCBiFPrintfOCL64.opt.bc"
config.vc_spirv_ocl_bif = "$<TARGET_PROPERTY:VCBiFPreparation,BINARY_DIR>/VCSPIRVBuiltins64.opt.bc"
config.vc_builtins_bif_prefix = "$<TARGET_PROPERTY:VCBiFPreparation,BINARY_DIR>/VCBuiltins64"
config.vc_platform_list = "@SUPPORTED_VC_PLATFORMS@"
config.use_khronos_spirv_translator_in_sc = "$<BOOL:@IGC_OPTION__USE_KHRONOS_SPIRV_TRANSLATOR_IN_SC@>"
config.llvm_version = "@LLVM_VERSION_MAJOR@"
config.opaque_pointers_default_arg_opt = "@IGC_BUILD__OPAQUE_POINTERS_DEFAULT_ARG_OPT@"
config.opaque_pointers_disable_opt = "@IGC_BUILD__OPAQUE_POINTERS_DISABLE_OPT@"
config.opaque_pointers_enable_opt = "@IGC_BUILD__OPAQUE_POINTERS_ENABLE_OPT@"

# 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
except KeyError:
    e = sys.exc_info()[1]
    key, = e.args
    lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))

import lit.llvm
lit.llvm.initialize(lit_config, config)

# Let the main config do the real work.
lit_config.load_config(config, "@VC_TEST_SOURCE_DIR@/lit.cfg.py")