From 886d174d7c511027b54c2996d51271300aba7144 Mon Sep 17 00:00:00 2001 From: Sebastian Poeplau Date: Tue, 30 Jul 2024 10:21:42 +0200 Subject: [PATCH] Fix out-of-tree execution of lit The lit substitution "%b" is used to find previously compiled helpers such as fpcmp-target; they're more likely to be in the test source directory (where the CMake artifacts are) than in the test exec directory (where lit is run). Note that the two are equal in the default site configuration, so this change matters only in environments with a custom site configuration file. --- lit.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lit.cfg b/lit.cfg index d8be816dcd..77f9732bd6 100644 --- a/lit.cfg +++ b/lit.cfg @@ -53,5 +53,5 @@ if lit_config.params.get("profile") == "hpmcount": config.test_modules += ["hpmcount"] config.substitutions += [ - ("%b", os.path.join(config.test_exec_root, "tools")), + ("%b", os.path.join(config.test_source_root, "tools")), ]