17274ff82fab3b167514e2aba81aa775d9fd73ca8Alexey Samsonov## Autogenerated by LLVM/Clang configuration.
27274ff82fab3b167514e2aba81aa775d9fd73ca8Alexey Samsonov# Do not edit!
37274ff82fab3b167514e2aba81aa775d9fd73ca8Alexey Samsonov
47274ff82fab3b167514e2aba81aa775d9fd73ca8Alexey Samsonovconfig.target_triple = "@TARGET_TRIPLE@"
525fa5e1f50d74a2499d73657535dc043d2f5607bAlexey Samsonovconfig.host_os = "@HOST_OS@"
67274ff82fab3b167514e2aba81aa775d9fd73ca8Alexey Samsonovconfig.llvm_src_root = "@LLVM_SOURCE_DIR@"
76ffcb580a0b1a086c4ffa1f943ed983c2bc6b97dAlexey Samsonovconfig.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
87274ff82fab3b167514e2aba81aa775d9fd73ca8Alexey Samsonovconfig.clang = "@LLVM_BINARY_DIR@/bin/clang"
97274ff82fab3b167514e2aba81aa775d9fd73ca8Alexey Samsonov
106ffcb580a0b1a086c4ffa1f943ed983c2bc6b97dAlexey Samsonov# LLVM tools dir can be passed in lit parameters, so try to
116ffcb580a0b1a086c4ffa1f943ed983c2bc6b97dAlexey Samsonov# apply substitution.
126ffcb580a0b1a086c4ffa1f943ed983c2bc6b97dAlexey Samsonovtry:
136ffcb580a0b1a086c4ffa1f943ed983c2bc6b97dAlexey Samsonov  config.llvm_tools_dir = config.llvm_tools_dir % lit.params
146ffcb580a0b1a086c4ffa1f943ed983c2bc6b97dAlexey Samsonovexcept KeyError,e:
156ffcb580a0b1a086c4ffa1f943ed983c2bc6b97dAlexey Samsonov  key, = e.args
166ffcb580a0b1a086c4ffa1f943ed983c2bc6b97dAlexey Samsonov  lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key, key))
176ffcb580a0b1a086c4ffa1f943ed983c2bc6b97dAlexey Samsonov
187274ff82fab3b167514e2aba81aa775d9fd73ca8Alexey Samsonov# Let the main config do the real work.
194afc63c18f7d811f31dbd2e5d825ce9d10c93decAlexey Samsonovlit.load_config(config, "@ASAN_SOURCE_DIR@/lit_tests/lit.cfg")
20