blob: 54dd276db5bd7c0bc818f66b4f690ca6237a5edb [file] [log] [blame]
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# This is a sample file meant to be modified for specific configurations
import os
import sys
wopt = "" # set to " -w", or equivalent option, to disable warnings.
# skiplist = [ "test/s2_7/test_02", "test/s2_7/test_06"] # Enable to choose a 'skip list'
test_params = {
"bindump": "nm", # name of the nm-like tool to print symbol names
"cxx_rtti": "-frtti", # option to enable rtti
"runtool": "", # leave empty for native runs.
# Set to the name of the 'runner' tool for cross tools
"linker": "clang++ -w", # name of the linker
"cxx_compiler": "clang -x c++" + wopt, # name of the C++ compiler
"c_compiler": "clang" + wopt, # name of the C compiler
"cxx_cpp11": "-std=c++0x", # option to enable C++11 mode, if any
"prefixes": "--check-prefix=LP64", # must be LP64 or ILP32
"Platform": "linux-clang", # just for documentation
"Mode": "LP64-x86", # must be "LP64-x86" or "ILP32-x86"
"cxx_exceptions": "-fexceptions" # options to enable exceptions
# , skip_list: skiplist # if skiplist is not empty
}
import subprocess
if __name__ == "__main__":
print(f"test_params = {test_params}")
builtin_parameters = {
"build_mode": "Release",
"llvm_site_config": os.path.join(os.getcwd(), "lit.site.cfg"),
"clang_site_config": os.path.join(os.getcwd(), "lit.site.cfg"),
"test_params": test_params,
}
from lit.main import main
main(builtin_parameters)