[libunwind] Allow specifying custom Lit config files
This is the libunwind counterpart of 0c66af970c80.
Cr-Mirrored-From: https://chromium.googlesource.com/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: c55051eea5d3cd57abfd9727f519b670517704d9
diff --git a/test/lit.cfg.py b/test/lit.cfg.py
new file mode 100644
index 0000000..647464a
--- /dev/null
+++ b/test/lit.cfg.py
@@ -0,0 +1,10 @@
+# All the Lit configuration is handled in the site configs -- this file is only
+# left as a canary to catch invocations of Lit that do not go through llvm-lit.
+#
+# Invocations that go through llvm-lit will automatically use the right Lit
+# site configuration inside the build directory.
+
+lit_config.fatal(
+ "You seem to be running Lit directly -- you should be running Lit through "
+ "<build>/bin/llvm-lit, which will ensure that the right Lit configuration "
+ "file is used.")