// REQUIRES: crash-recovery
// FIXME: CHECKs might be incompatible to win32.
-// REQUIRES: shell
+// Stack traces also require back traces.
+// REQUIRES: shell backtrace
void clang_analyzer_crash(void);
// REQUIRES: crash-recovery
// FIXME: CHECKs might be incompatible to win32.
-// REQUIRES: shell
+// Stack traces also require back traces.
+// REQUIRES: shell backtrace
#prag\
ma clang __debug crash
else:
config.available_features.add("not_ubsan")
+if config.enable_backtrace == "1":
+ config.available_features.add("backtrace")
+
# Check if we should run long running tests.
if lit_config.params.get("run_long_tests", None) == "true":
config.available_features.add("long_tests")
config.clang_staticanalyzer = @ENABLE_CLANG_STATIC_ANALYZER@
config.clang_examples = @ENABLE_CLANG_EXAMPLES@
config.enable_shared = @ENABLE_SHARED@
+config.enable_backtrace = "@ENABLE_BACKTRACES@"
config.host_arch = "@HOST_ARCH@"
# Support substitution of the tools and libs dirs with user parameters. This is