lit.site.cfg.in 877 B

1234567891011121314151617181920212223
  1. import sys
  2. ## Autogenerated by LLVM/Clang configuration.
  3. # Do not edit!
  4. config.llvm_src_root = "@LLVM_SOURCE_DIR@"
  5. config.llvm_obj_root = "@LLVM_BINARY_DIR@"
  6. config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
  7. config.llvm_build_mode = "@LLVM_BUILD_MODE@"
  8. config.enable_shared = @ENABLE_SHARED@
  9. config.shlibdir = "@SHLIBDIR@"
  10. # Support substitution of the tools_dir and build_mode with user parameters.
  11. # This is used when we can't determine the tool dir at configuration time.
  12. try:
  13. config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
  14. config.llvm_build_mode = config.llvm_build_mode % lit_config.params
  15. except KeyError:
  16. e = sys.exc_info()[1]
  17. key, = e.args
  18. lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
  19. # Let the main config do the real work.
  20. lit_config.load_config(config, "@LLVM_SOURCE_DIR@/test/Unit/lit.cfg")